How to profile PyCuda code with the Visual Profiler?

后端 未结 2 2047
生来不讨喜
生来不讨喜 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:08

    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

提交回复
热议问题