Summary: I'm trying to debug my kernel with cuda-gdb, http://wiki.tiker.net/PyCuda/FrequentlyAskedQuestions#Is_it_possible_to_use_cuda-gdb_with_PyCUDA.3F as described in the FAQ . However, every module and function seems to "disappear", because I get NameErrors whenever I try to access them. This does not happen when running the program normally, without cuda-gdb. Is this fixable, or should I file a bug report?
Details: Driver version: 256.53 CUDA version: 3.1 PyCUDA version: 0.94.1 Python version: 2.7 I start execution with cuda-gdb --args python -m pycuda.debug [my program]. Execution fails on the first line, which is 'argv = sys.argv[1:]' with: NameError: global name 'sys' is not defined even though the 'sys' module has already been imported. Just to be sure, I put 'import sys' right before the offending line. Now the next line, 'parser = get_parser()' fails with: NameError: global name 'get_parser is not defined even though it is defined! Again, none of these problems happen unless I'm using cuda-gdb. -- View this message in context: http://pycuda.2962900.n2.nabble.com/cuda-gdb-problem-global-names-not-found-tp5568559p5568559.html Sent from the PyCuda mailing list archive at Nabble.com.
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
