Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
apanqasem opened this issue Oct 4, 2017 · 2 comments
Open

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

apanqasem opened this issue Oct 4, 2017 · 2 comments

Comments

@apanqasem
Copy link

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
Copy link
Collaborator

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

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

@apanqasem
Copy link
Author

apanqasem commented Oct 4, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants