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

full csv created but one line JSON result #104

Open mlohry opened 1 year ago

mlohry commented 1 year ago

System: ubuntu 22.04, Radeon VII, rocm-5.4.3.

Following the rocprof user guide example, I am able to successfully run the linked MatrixMultiplication.cpp with rocprof --hsa-trace --hip-trace matrixmul and it produces the expected json and csv output described in the docs.

Running the same thing on a more complex production code (built on top of RAJA's HIP interface), I no longer see the results.json' is generating message. results.json is created, but contains only a single line:

,{"args":{"name":"COPY"},"ph":"M","pid":1,"name":"process_name","sort_index":0}

The results.stats.csv however looks correct -- several dozen hip kernels are traced, showing number of calls, percentage time, etc.. Any idea what I might be doing wrong?