How to profile PyCuda code with the Visual Profiler?

后端 未结 2 2049
生来不讨喜
生来不讨喜 2020-12-01 20:38

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

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-01 21:07

    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:

    enter image description here

提交回复
热议问题