GPUOpen-Tools / radeon_compute_profiler

The Radeon Compute Profiler (RCP) is a performance analysis tool that gathers data from the API run-time and GPU for OpenCLâ„¢ and ROCm/HSA applications. This information can be used by developers to discover bottlenecks in the application and to find ways to optimize the application's performance.
MIT License
85 stars 19 forks source link

Profiling a Python script #5

Closed masahi closed 6 years ago

masahi commented 6 years ago

Hi, I have a python script that calls HSA kernels, and I want to profile this script.

Ideally, I want to do something like: $ rocm-profiler -A -w . python style_transfer.py

But I am getting this error message at the moment: Process failed to run. Make sure you have specified the correct path.

Is there a way to do what I want?

It seems CodeXL can profile python scripts, by specifying the executable name as "python" and setting the script name to the command line argument.

chesik-amd commented 6 years ago

Can you check if specifying the full path to python (/usr/bin/python) makes a difference here?

masahi commented 6 years ago

yes, specifying the full path to python executable solved my issue.

Thanks.