mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Optimization doubles performance... but breaks the output (even more)
This commit is contained in:
parent
d01de61952
commit
5c5122e8c8
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user