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

Where to find the source codes of hsa-amd-aqlprofile #38

Open lscat11 opened 3 years ago

lscat11 commented 3 years ago

I found that this repo depends on hsa-amd-aqlprofile, but I did not find its source codes. Where to find its source codes, or is it proprietary?

jpsamaroo commented 3 years ago

Seems from https://aur.archlinux.org/packages/hsa-amd-aqlprofile-bin/ that it's closed-source. Which sucks because I'm on a musl system, and no one builds for musl...

xuhuisheng commented 3 years ago

I comiple ROCm from souces, seems aqlprofile is not necessory.

jpsamaroo commented 3 years ago

@xuhuisheng have you tried running rocprof --stats ...? It seems even with CMAKE_LD_AQLPROFILE=0, this doesn't work.

littlewu2508 commented 1 year ago

Without aqlprofile I found rocprof can do only basic profiling, rocprof --stats actually works, but arguments like --sys-trace cannot work, and you only get which kernels are executed with their execution time, without detailed tracing output result.json (which can be viewed in https://ui.perfetto.dev)

littlewu2508 commented 1 year ago

https://github.com/RadeonOpenCompute/ROCm/issues/1781#issuecomment-1207379605 I found out that patching hsa_rsrc_factory.cpp can make rocprofiler work (at least I tested using rocprof --roctx-trace --hip-trace --hsa-trace --sys-trace an_vectoradd_program it gives the desired output)