From 5c5122e8c8430bef977eaf4a5cf9a0083e105fb0 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 12 Sep 2010 17:17:08 -0400 Subject: [PATCH] Optimization doubles performance... but breaks the output (even more) --- cuburn/cuda.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cuburn/cuda.py b/cuburn/cuda.py index f7c9fca..9be816e 100644 --- a/cuburn/cuda.py +++ b/cuburn/cuda.py @@ -64,8 +64,9 @@ class LaunchContext(object): try: # TODO: detect/customize arch, code; verbose setting; # keep directory enable/disable via debug - self.mod = SourceModule(self.ptx.source, no_extern_c=True, - options=['--keep', '-v', '-G']) + self.mod = cuda.module_from_buffer(self.ptx.source, + [(cuda.jit_option.OPTIMIZATION_LEVEL, 0), + (cuda.jit_option.TARGET_FROM_CUCONTEXT, 1)]) except (cuda.CompileError, cuda.RuntimeError), e: # TODO: if output not written above, print different message print "Compile error. Source is at /tmp/cuburn.ptx"