0

Judging by past StackOverflow questions (e.g., here and here), it seems that one should be able to profile PyCUDA programs using nvvp. When I tried running nvvp in CUDA 6.5 on a PyCUDA script that runs without any problems from the command line, profiling failed with the following error:

Unable to profile application.
org.eclipse.core.rntime.CoreException: Reference to undefined variable args

Has anyone successfully used nvvp 6.5 with PyCUDA? I'm using PyCUDA 2014.1 manually built against CUDA 6.5 on Ubuntu 14.04. The script itself has executable permissions and #!/usr/bin/env python at the top, and I specified the script path as the file to run.

lebedov
  • 1,371
  • 2
  • 12
  • 27

1 Answers1

1

Apparently, nvvp can get confused by certain bash functions in one's environment (see this post for another example). I found the function by searching through the output of env and unset it using unset -f.

lebedov
  • 1,371
  • 2
  • 12
  • 27