Hi,
I was wondering if it's possible to profile OpenCL kernels that are launched from a python script using the PyOpenCL bindings. I wrote a script and made it executable but when I run sprofile on it I get an error message saying that my script "is not a valid application". This is under linux using the AMDAPPProfiler 2.5 (64bit). Thanks a lot in advance.
Cheers,
Dominic
Solved! Go to Solution.
I am able to profile pyOpenCL using the following command line:
sprofile -t "c:\myPathTo\python.exe" "c:\myPathToPyOpenCLExample\matrix-multiply.py"
I think you need profile python interpreter with your script. so try something like this ./sprofile python your_script.py
I am able to profile pyOpenCL using the following command line:
sprofile -t "c:\myPathTo\python.exe" "c:\myPathToPyOpenCLExample\matrix-multiply.py"
Perfect. It works.
Thanks,
Dominic
On Linux this works too:
./sprofile -t /usr/bin/python ~/workspace/Project/somefile.py