When I create a new session and tell the Visual Profiler to launch my python/pycuda scripts I get following error message: Execution run #1 of program \'\' failed, ex
There is something wrong with the way you are specifying the executable to the compute profiler. If I put a hash bang line at the top of your posted code:
#!/usr/bin/env python
and then give the python file executable permissions, the compute profiler runs the code without complaint and I get this:
There are two methods that you can use.
Launch the Script Interpreter
Launch python
Arguments "/pathtopycudafile/mysuperkernel.py"
Launch a Executable Script
Launch "/pathtopycudafile/mysuperkernel.py"
Arguments [blank]
mysuperkernel.py must be executable (chmod +x)
mysuperkenrel.py must have a #! to specify the path to the interpreter
See @talonmies answer