Added property ctx.warps_per_cta

This commit is contained in:
Steven Robertson 2010-09-10 12:53:40 -04:00
parent 2f3ac42153
commit 6eaa80be7a

View File

@ -50,6 +50,10 @@ class LaunchContext(object):
def threads_per_cta(self):
return self.block[0] * self.block[1] * self.block[2]
@property
def warps_per_cta(self):
return self.threads_per_cta / 32
def compile(self, verbose=False, **kwargs):
kwargs['ctx'] = self
self.ptx = PTXModule(self.entry_types, kwargs, self.build_tests)