Lockless lossy shared memory writeback.

Barely tested! And yet it's going straight into master. Lucky you!
This commit is contained in:
Steven Robertson
2011-12-09 16:13:23 -05:00
parent 6bac3b3a95
commit c5da1efc74
2 changed files with 27 additions and 87 deletions

View File

@ -82,11 +82,6 @@ class Renderer(object):
self.cubin = pycuda.compiler.compile(
self.src, keep=keep, options=cmp_options,
cache_dir=False if keep else None)
with open('/tmp/iter_kern.cubin', 'wb') as fp:
fp.write(self.cubin)
# For now, we apply the monkey-patch manually. May eventually make
# this more of a framework if I do it in more than one code segment.
self.cubin = self._iter.monkey_patch(self.cubin)
self.mod = cuda.module_from_buffer(self.cubin, jit_options)
with open('/tmp/iter_kern.cubin', 'wb') as fp:
fp.write(self.cubin)