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

GPA_OpenContext for ROCm/hip application #44

Open
theRTLmaker opened this issue Nov 13, 2019 · 1 comment
Open

GPA_OpenContext for ROCm/hip application #44

theRTLmaker opened this issue Nov 13, 2019 · 1 comment

Comments

@theRTLmaker
Copy link

I am a researcher at Univerity of Lisbon (Portugal) and I want to use GPA to profile ROCm/hip applications. I see that there's no example of how to this for ROCm.
Can you give me a hint on how should I fill the context to pass to GPA_OpenContext() or a general example of the use of the tool to profile a ROCm kernel?

As for now, my codes looks like this:
GPA_ROCm_Context gpaContext;
gpaContext.m_pAgent = ????
gpaContext.m_pQueue = ????
GPA_Status status = g_pFuncTable->GPA_OpenContext(&gpaContext, GPA_OPENCONTEXT_ENABLE_HARDWARE_COUNTERS_BIT, &contextId);

As an attachment, I send my example code and a makefile
Makefile.txt
vectoradd_hip.cpp.txt

Thank you

@PLohrmannAMD
Copy link
Contributor

You've probably graduated by now, and I'm sure you've realized - GPA does not currently support HIP (or ROCm) applications.

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