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);
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