Optimization doubles performance... but breaks the output (even more)

This commit is contained in:
Steven Robertson 2010-09-12 17:17:08 -04:00
parent d01de61952
commit 5c5122e8c8

View File

@ -64,8 +64,9 @@ class LaunchContext(object):
try: try:
# TODO: detect/customize arch, code; verbose setting; # TODO: detect/customize arch, code; verbose setting;
# keep directory enable/disable via debug # keep directory enable/disable via debug
self.mod = SourceModule(self.ptx.source, no_extern_c=True, self.mod = cuda.module_from_buffer(self.ptx.source,
options=['--keep', '-v', '-G']) [(cuda.jit_option.OPTIMIZATION_LEVEL, 0),
(cuda.jit_option.TARGET_FROM_CUCONTEXT, 1)])
except (cuda.CompileError, cuda.RuntimeError), e: except (cuda.CompileError, cuda.RuntimeError), e:
# TODO: if output not written above, print different message # TODO: if output not written above, print different message
print "Compile error. Source is at /tmp/cuburn.ptx" print "Compile error. Source is at /tmp/cuburn.ptx"