ROCm / rocprofiler

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

rocprof not running the executable #19

Closed ye-luo closed 4 years ago

ye-luo commented 4 years ago

I noticed that rocprof completely bypasses running the executable.

$ OMP_NUM_THREADS=8 rocprof --hsa-trace --obj-tracking on ./bin/check_spo_batched 
RPL: on '200317_135650' from '/opt/rocm-3.1.0/rocprofiler' in '/home/yeluo/opt/miniqmc/build_ryzen_aomp_MP'
RPL: profiling '"./bin/check_spo_batched"'
RPL: input file ''
RPL: output dir '/tmp/rpl_data_200317_135650_31629'
RPL: result dir '/tmp/rpl_data_200317_135650_31629/input_results_200317_135650'
ROCProfiler: input from "/tmp/rpl_data_200317_135650_31629/input.xml"
  0 metrics
  0 traces
ROCTracer (pid=31651): 
    HSA-trace()
    HSA-activity-trace()
File '/home/yeluo/opt/miniqmc/build_ryzen_aomp_MP/results.hsa_stats.csv' is generating

File '/home/yeluo/opt/miniqmc/build_ryzen_aomp_MP/results.json' is generating

File '/home/yeluo/opt/miniqmc/build_ryzen_aomp_MP/results.json' is generating

Any idea what is wrong?

ekuznetsov139 commented 4 years ago

Try to run it again after sudo apt-get install --reinstall hsa-amd-aqlprofile

pfotouhi commented 4 years ago

I've been dealing with a similar issue, and re-installing hsa-amd-aqlprofile solved it. Moreover, I suggest double checking rocprof installation and making sure that tests (run.sh in your build directory) are successfully completed (at least for me it was a combination of both issues).

ye-luo commented 4 years ago

Re-installing hsa-amd-aqlprofile solved my issue.

ye-luo commented 4 years ago

Today I updated rocm to 3.3 and then I have to reinstall hsa-amd-aqlprofile again. The packaging team needs to sort out a better solution.