From f184de9a5ab72188e03149a7d63a7d0da00a868e Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Thu, 11 Aug 2011 14:20:59 -0400 Subject: Show number of registers used in CUDA kernels --- gpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu.py b/gpu.py index ffa17a6..16e6f4a 100644 --- a/gpu.py +++ b/gpu.py @@ -72,7 +72,7 @@ class GPU(object): device = cuda.Device(device_id) self.context = device.make_context() print 'device %s' % self.context.get_device().name() - cuda_options = ['-I' + src.dir, '--use_fast_math'] + cuda_options = ['-I' + src.dir, '--use_fast_math', '--ptxas-options=-v'] self.module = SourceModule(src.kernel, options=cuda_options, no_extern_c=True) self.geo_funcs = CUDAFuncs(self.module, ['set_wavelength_range', 'set_material', 'set_surface', 'set_global_mesh_variables', 'color_solids']) -- cgit