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
83 stars 19 forks source link

"not a valid application" message from rocm-profiler #4

Open apanqasem opened 6 years ago

apanqasem commented 6 years ago

I am trying to profile HSA applications on a discrete GPU node.

Rocm 1.6; Radeon Compute Profiler (rcprof) 64 bits - V5.1.6400.

I copied the vector copy example in rocm/hsa. Built and ran the code. It ran fine. When I try the profiler, I get a "not a valid application" message.

(t1)%rocm-profiler -C ./vector_copy /home/apan/code/dlbench/opencl/vcopy/sample/./vector_copy is not a valid application

I am getting similar errors with other applications as well. Probably some flag I need to pass in the build process?

chesik-amd commented 6 years ago

Can you try this with RCP 5.2?

Earlier versions of RCP check to see if the file being profiled is a valid ELF executable. This check was relaxed in RCP 5.2.

See https://github.com/GPUOpen-Tools/RCP/issues/2

The discussion there suggests that passing "-no-pie" while compiling allows profiling of applications that were previously giving "not a valid application" error

apanqasem commented 6 years ago

Thanks Chris. I don’t have root access on the machine. I will have 5.2 installed and update here.

The no-pie did not work for me.

On Oct 4, 2017, at 4:12 PM, Chris Hesik notifications@github.com wrote:

Can you try this with RCP 5.2?

Earlier versions of RCP check to see if the file being profiled is a valid ELF executable. This check was relaxed in RCP 5.2.

See #2 https://github.com/GPUOpen-Tools/RCP/issues/2 The discussion there suggests that passing "-no-pie" while compiling allows profiling of applications that were previously giving "not a valid application" error

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/GPUOpen-Tools/RCP/issues/4#issuecomment-334291074, or mute the thread https://github.com/notifications/unsubscribe-auth/AH4Lcl0P2uZb4S_T_0KeMUO06jr_IEeLks5so_TWgaJpZM4PuLxp.