cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

dmeiser
Elite

Profiling PyOpenCL application

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

0 Likes
1 Solution
lbin
Staff

I am able to profile pyOpenCL using the following command line:

sprofile -t "c:\myPathTo\python.exe" "c:\myPathToPyOpenCLExample\matrix-multiply.py"

View solution in original post

4 Replies
nou
Exemplar

I think you need profile python interpreter with your script. so try something like this ./sprofile python your_script.py

lbin
Staff

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

0 Likes

On Linux this works too:

./sprofile -t /usr/bin/python ~/workspace/Project/somefile.py

0 Likes