ROCm / rocprofiler

ROC profiler library. Profiling with perf-counters and derived metrics.
https://rocm.docs.amd.com/projects/rocprofiler/en/latest/
Other
116 stars 44 forks source link

OpenCL support question #73

Closed zjin-lcf closed 2 years ago

zjin-lcf commented 2 years ago

When profiling an OpenCL program, the error message is:

ROCTracer (pid=1529322): HSA-trace() HIP-trace() roctracer: Loading 'libamdhip64.so' failed, (null)

Am I doing right ? Thank you for your answer.

kikimych commented 2 years ago

You can try to set LD_LIBRARY_PATH

guangzlu commented 1 year ago

Have you solved it? I have add the route path of libamdhip64.so to LD_LIBRARY_PATH (for me is /opt/rocm-5.2.0/lib), I still face the problem. Can you tell me your way to solve it?

kikimych commented 1 year ago

https://github.com/ROCm-Developer-Tools/roctracer/blob/amd-master/src/core/loader.h#L56

Could you please build roctracer in debug, run rocprofiler [profiler options] gdb 'program_name' set breakpoint on the line above and check actual path?

gofreelee commented 1 year ago

Have you solved it? I have add the route path of libamdhip64.so to LD_LIBRARY_PATH (for me is /opt/rocm-5.2.0/lib), I still face the problem. Can you tell me your way to solve it?

hello, have you solved it ? i am facing the same question