Bob Zigon <bob.zigon(a)gmail.com> writes:
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
Not built-in, but it's quite easy to hack in yourself.
Just add "print cmdline" around here:
(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
by the Cuda compiler.
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.