ROCm / rocprofiler-compute

Advanced Profiling and Analytics for AMD Hardware
https://rocm.docs.amd.com/projects/omniperf/en/latest/
MIT License
135 stars 49 forks source link

ROCprofiler API version is not compatible #380

Closed chrirocca closed 1 week ago

chrirocca commented 4 months ago

i am trying to use omniperf 2.0.1 on a new MI300X. For what I understand, rocprofv2 is required to make it work. I have tried different ROCm versions and ubuntu versions to try to solve this issue but I didn't find any information online and I'm not sure how to solve it.

I have also tried to run rocprofv2 by itself, but it gives me the same error. So i think maybe it could be an error in rocprofv2.

I was wondering if this error ever occurred to someone and how to solve/find a workaround to make it work.

Thank you,

This is the output i have when trying to profile a program. Screenshot 2024-06-26 103340

coleramos425 commented 4 months ago

@chrirocca what version(s) of ROCm are you seeing this issue with?

chrirocca commented 4 months ago

I tried with both ROCm 6.0.0 and 6.1, with ubuntu 22.04 and 20.04

coleramos425 commented 4 months ago

Without source code your hip-latency app it's hard to say what exactly is happening here, however, this does indeed look like a rocprofiler issue. If source code is public can you please share a link? I'll try my best to diagnose, but we may need to file a separate ticket for the rocprofiler project.

coleramos425 commented 3 months ago

@chrirocca can you please follow up with your source code? Otherwise, I'll close this ticket and defer you to the rocprofiler issue tracking page: https://github.com/ROCm/rocprofiler/issues

chrirocca commented 3 months ago

Sorry for the slow reply, i didn't see the reply before. I attach my repository with source code and makefile i am using, could you check if you can reproduce the error? https://github.com/chrirocca/test My guess was a problem with linking to rocprof...

ppanchad-amd commented 3 weeks ago

Hi @chrirocca. An internal ticket has been created to assist with your issue. Thanks!

zichguan-amd commented 3 weeks ago

Hi @chrirocca, I don't have a MI300X at the moment and I was not able to reproduce the problem on MI100. Can you try running omniperf with -VVV flag like this: omniperf profile -VVV -n latency -- ./hip-latency 0 0 0 0? You can also pass the path to rocprofv2 with the ROCPROF=<path/to/v2/> environment variable to make sure that it is using the right rocprof.

zichguan-amd commented 1 week ago

Closing due to inactivity. Feel free to reach out again if the problem persists.