ROCm / roctracer

ROCm Tracer Callback/Activity Library for Performance tracing AMD GPUs
https://rocm.docs.amd.com/projects/roctracer/en/latest/
Other
65 stars 30 forks source link

run time error: roctracer: Loading 'libkfdwrapper64.so' failed #41

Closed X0T closed 4 years ago

X0T commented 4 years ago

Rocm framework is clean installed rocm-3.3.0 I took reference from the MatrixTranspose_test example and the code can be successfully compiled. But roctracer is complaining not able to load libkfdwrapper64.so at run time.

<hipMalloc id(3)    correlation_id(13) on-enter> ptr(0x7ffff91b5300) size(0x50)
<hipMalloc id(3)    correlation_id(13) on-exit> *ptr(0x0x50c9ff000)
<hipMemcpy id(128)  correlation_id(14) on-enter> dst(0x50c9ff000) src(0x3ee6000) size(0x30) kind(3)
<hipMemcpy id(128)  correlation_id(14) on-exit> 
<hipMemcpy id(128)  correlation_id(15) on-enter> dst(0x50c9ff030) src(0x3ef2000) size(0x20) kind(3)
<hipMemcpy id(128)  correlation_id(15) on-exit> 
<hipModuleLaunchKernel id(148)  correlation_id(16) on-enter> kernel("_Z30hip_debayer_post_processP15HIP_vector_typeIhLj4EEii") stream(0x1e70b00)
<hipModuleLaunchKernel id(148)  correlation_id(16) on-exit> 
<rocTX "after HIP LaunchKernel">
<rocTX "(null)">
**roctracer: Loading 'libkfdwrapper64.so' failed, (null)**
Aborted (core dumped)
eshcherb commented 4 years ago

Please set LD_LIBRARY_PATH: $ export LD_LIBRARY_PATH=/opt/rocm/roctracer/lib

X0T commented 4 years ago

Please set LD_LIBRARY_PATH: $ export LD_LIBRARY_PATH=/opt/rocm/roctracer/lib

thanks.