ROCm / rocprofiler

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

/opt/rocm/libexec/rocprofiler/tblextr.py: ROCTX range begin not found, pid() #126

Open rommelDB opened 10 months ago

rommelDB commented 10 months ago

I have a Fortran90 app, and I got this error when trying to get the profiling report with:

rocprof --hip-trace --roctx-trace ./foo

My main.F90 code is like:

...
use roctx, only: roctxRangePushA, roctxRangePop
use ISO_C_BINDING, only: C_NULL_CHAR

subroutine foo(...)
  ret = roctxRangePushA("foo"//C_NULL_CHAR)
  ... more code ...
  call roctxRangePop()
end subroutine foo
...

And the roctx module is the same than: https://github.com/cp2k/dbcsr/blob/HEAD/src/acc/hip/dbcsr_hip_profiling.F

Also, the building useful line is:

LDFLAGS=-L$(ROCM_PATH)/lib -lroctx64

It seems it should work. But, probably, I'm doing something wrong, btw rocm version is 5.2.3.