Bob Zigon <[email protected]> writes: > Hello > > I am using Ubuntu 11.10 with PyCuda 2012.1 and Cuda 5.0 on a K20c. > I have been developing with Cuda for 6 years and Python for 4 weeks. > > I use the pycuda.compiler class to compile my Cuda code in my Python code. > Is there a way I can see all of the switches that are being passed into the > compiler?
Not built-in, but it's quite easy to hack in yourself. Just add "print cmdline" around here: https://github.com/inducer/pycuda/blob/master/pycuda/compiler.py#L118 (and then say "python setup.py install" as you did when you installed) You might also need to delete the compiler cache, in /tmp/pycuda*, to make sure the compiler actually runs. > I want to know if debug code (instead of release code) is being generated > by the Cuda compiler. It shouldn't. > The pycuda.compiler.DEFAULT_NVCC_FLAGS is always empty. Right. That's a place for you to hack in flags you'd always like to pass to the compiler. PyCuda only reads that. HTH, Andreas _______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
