Open lscat11 opened 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...
I comiple ROCm from souces, seems aqlprofile is not necessory.
@xuhuisheng have you tried running rocprof --stats ...
? It seems even with CMAKE_LD_AQLPROFILE=0
, this doesn't work.
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)
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)
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?