From a6141f492d28a418373c5ffee3079cd0cbddda1e Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 12 Sep 2010 15:48:31 -0400 Subject: [PATCH] A byte is *8* bits --- cuburn/ptx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuburn/ptx.py b/cuburn/ptx.py index 25cb997..3627bff 100644 --- a/cuburn/ptx.py +++ b/cuburn/ptx.py @@ -717,7 +717,7 @@ class _PTXStdLib(PTXFragment): # representation, 0fXXXXXXXX (where XX is hex byte) val = '0f%x%x%x%x' % reversed(map(ord, struct.pack('f', val))) - op._call(['st', 'b%d' % (width*4)], addr(spt_base), val) + op._call(['st', 'b%d' % (width*8)], addr(spt_base), val) @ptx_func def set_is_first_thread(self, p_dst):