rocprofiler icon indicating copy to clipboard operation
rocprofiler copied to clipboard

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

Open lscat11 opened this issue 5 years ago • 7 comments
trafficstars

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?

lscat11 avatar Oct 29 '20 07:10 lscat11

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...

jpsamaroo avatar Apr 09 '21 14:04 jpsamaroo

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

xuhuisheng avatar Apr 09 '21 14:04 xuhuisheng

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

jpsamaroo avatar Apr 09 '21 14:04 jpsamaroo

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 avatar Aug 07 '22 04:08 littlewu2508

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)

littlewu2508 avatar Aug 07 '22 10:08 littlewu2508

@lscat11 Do you still need assistance with this ticket? If not, please close the ticket. Thanks!

ppanchad-amd avatar Aug 27 '24 18:08 ppanchad-amd

I think the source code is still not available and this ticket should remain open.

littlewu2508 avatar Aug 28 '24 01:08 littlewu2508