Roctracer fails to register ACTIVITY_DOMAIN_HIP_API
mxz297 opened this issue · 1 comments
mxz297 commented
Hi,
I encountered the following error when I use latest HIP and Roctracer:
xm13@amd2:~/workspaces/roctracer/test/MatrixTranspose_test$ pwd
/home/xm13/workspaces/roctracer/test/MatrixTranspose_test
xm13@amd2:~/workspaces/roctracer/test/MatrixTranspose_test$ LD_LIBRARY_PATH=../../build ./MatrixTranspose
Device name Ellesmere [Radeon RX 470/480/570/570X/580/580X]
# INIT #############################
roctracer_enable_domain_callback(), roctracer_enable_callback_fun(), HIP error: hipRegisterApiCallback(0) error(1011)
Aborted (core dumped)
The MatrixTranspose
program is the example code provided in Roctracer.
I compiled both HIP and Roctracer from source.
My HIP head is:
commit 5f37f3174a3b17875405d6eefd6ad00b77adf91a (HEAD -> master, origin/master, origin/HEAD)
Author: Rahul Garg <garg.rahul@gmail.com>
Date: Thu Oct 17 09:11:32 2019 -0700
Revert "hipcc defaults to code object v3 (#1298)"
This reverts commit d39a2a0749e4b3deffd2717dc8209d668d5f9871.
My roctracer head is
commit c2cb1f2ab99e35721e4eb1ca51bb85adee3d1d2d (HEAD -> amd-master, origin/amd-master, origin/HEAD)
Author: Evgeny <evgeny.shcherbakov@amd.com>
Date: Wed Oct 16 12:18:13 2019 -0500
KFD_WRAPPER macro
This feels like a regression as Roctracer works fine with a version of HIP installed by apt-get
.
Thanks!
mxz297 commented
Recompiling HIP from source with supporting -DUSE_PROF_API=1
to cmake solves the problem. Thanks!