GPUOpen-Tools / radeon_compute_profiler

The Radeon Compute Profiler (RCP) is a performance analysis tool that gathers data from the API run-time and GPU for OpenCL™ and ROCm/HSA applications. This information can be used by developers to discover bottlenecks in the application and to find ways to optimize the application's performance.
MIT License
84 stars 19 forks source link

Doesn't find amd_comgr.h automatically #38

Open baryluk opened 4 years ago

baryluk commented 4 years ago
user@debian:~/RCP/Build/Linux$ dpkg -l | grep comgr
ii  comgr                                                       1.6.0.143-rocm-rel-3.5-30-e24e8c1      amd64        Library to provide support functions
user@debian:~/RCP/Build/Linux$ dpkg -L comgr
/opt
/opt/rocm-3.5.0
/opt/rocm-3.5.0/include
/opt/rocm-3.5.0/include/amd_comgr.h
/opt/rocm-3.5.0/include/opencl1.2-c.pch
/opt/rocm-3.5.0/include/opencl2.0-c.pch
/opt/rocm-3.5.0/lib
/opt/rocm-3.5.0/lib/cmake
/opt/rocm-3.5.0/lib/cmake/amd_comgr
/opt/rocm-3.5.0/lib/cmake/amd_comgr/amd_comgr-config-version.cmake
/opt/rocm-3.5.0/lib/cmake/amd_comgr/amd_comgr-config.cmake
/opt/rocm-3.5.0/lib/cmake/amd_comgr/amd_comgr-targets-release.cmake
/opt/rocm-3.5.0/lib/cmake/amd_comgr/amd_comgr-targets.cmake
/opt/rocm-3.5.0/lib/libamd_comgr.so.1.6.30500
/opt/rocm-3.5.0/share
/opt/rocm-3.5.0/share/amd_comgr
/opt/rocm-3.5.0/share/amd_comgr/LICENSE.txt
/opt/rocm-3.5.0/share/amd_comgr/NOTICES.txt
/opt/rocm-3.5.0/share/amd_comgr/README.md
/opt/rocm-3.5.0/lib/libamd_comgr.so
/opt/rocm-3.5.0/lib/libamd_comgr.so.1

...

g++ -O3 -DNDEBUG -std=c++11 -fPIC -Wall -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-non-virtual-dtor -Wno-conversion-null -Wno-ignored-attributes -Werror -msse   -I. -I../../Src/Common -I../../Src/CLCommon -I../../../Common/Src -I../../../Common/Lib/AMD/GPUPerfAPI/3_3/Include -I../../../Common/Lib/AMD/APPSDK/3-0/include -I/include -I../../../Common/Src/DynamicLibraryModule -I../../../Common/Src/DeviceInfo -I../../../Common/Src/TSingleton -isystem../../../Common/Lib/Ext/Boost/boost_1_59_0 -I../../../Common/Lib/Ext/utf8cpp/source -I../../../Common/Lib/AMD/ACL/TOT/include -I../../../Common/Src/ComgrUtils/Src -I../../../Common/Lib/AMD/ADL/include -I../../../Common/Src/ADLUtil -I../../../Common/Src/ACLModuleManager -I/opt/rocm/hsa/include -I/opt/rocm/hsa/include/hsa -I/opt/rocm/hsa/include/comgr/ -I/opt/rocm/hsa/../include  -D_LINUX -DUSE_POINTER_SINGLETON -DCOMGR_DYNAMIC_LINKING -DCL_USE_DEPRECATED_OPENCL_1_0_APIS -DCL_USE_DEPRECATED_OPENCL_1_1_APIS -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DCL_USE_DEPRECATED_OPENCL_2_0_APIS -DAMDT_PUBLIC -DAMDT_BUILD_SUFFIX=\"\" -DAMDT_PLATFORM_SUFFIX=\"\" -DAMDT_DEBUG_SUFFIX=\"\"   -c ../../../Common/Src/ComgrUtils/Src/ComgrUtils.cpp -o ../../Output/obj/release/x64/CLProfileAgent/ComgrUtils.o
In file included from ../../../Common/Src/ComgrUtils/Src/ComgrUtils.cpp:7:
../../../Common/Src/ComgrUtils/Src/ComgrUtils.h:23:10: fatal error: amd_comgr.h: No such file or directory
   23 | #include "amd_comgr.h"
      |          ^~~~~~~~~~~~~
compilation terminated.