ROCm / rocprofiler

ROC profiler library. Profiling with perf-counters and derived metrics.
https://rocm.docs.amd.com/projects/rocprofiler/en/latest/
MIT License
126 stars 46 forks source link

Rocprofiler issue with AMD OpenMP (aomp) #49

Closed arfio closed 2 years ago

arfio commented 3 years ago

Hi, I tried getting tracing data of an OpenMP example program of AOMP (vmulsum) and I got a segmentation fault tracing either with hsa, kfd or hip. I recorded a debug log using the following command: $ LD_DEBUG=libs rocprof --hsa-trace vmulsum 2&>1 > log.txt Here is the log.txt file: log.txt

I am using a gfx900, Ubuntu 20.04 with ROCm 4.2

ye-luo commented 2 years ago

@arfio Your log indicates missing libhsa-amd-aqlprofile64.so which is from hsa-amd-aqlprofile package.

Developers, please handle failure when loading dynamic library (dlopen?) instead of putting segmentation fault in front of users.

ye-luo commented 2 years ago

No more crash with ROCm 4.5.2 release

arfio commented 2 years ago

I tested again with ROCm 5.0.0 and do not have this issue.