File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,18 @@ if(${GPA_ALL_OPEN_SOURCE})
18
18
"/opt/rocm/hsa/include/hsa" )
19
19
endif ()
20
20
21
- # ROCm path
22
- find_file (ROCM_PATH "rocprofiler.h"
23
- HINTS "/opt/rocm/include"
21
+ # ROCProfiler header
22
+ find_file (ROCP_HEADER "rocprofiler.h"
23
+ HINTS "/opt/rocm/include/rocprofiler" "/opt/rocm/include "
24
24
NO_DEFAULT_PATH )
25
- if (${ROCM_PATH } STREQUAL "ROCM_PATH -NOTFOUND" )
26
- message ("CMake: ROCm Profiler not found" )
25
+ if (${ROCP_HEADER } STREQUAL "ROCP_HEADER -NOTFOUND" )
26
+ message ("CMake: ROCm Profiler header not found" )
27
27
else ()
28
+ get_filename_component (ROCP_PATH ${ROCP_HEADER} DIRECTORY )
28
29
set (ADDITIONAL_INCLUDE_DIRECTORIES ${ADDITIONAL_INCLUDE_DIRECTORIES}
29
- "/opt/rocm/include" )
30
+ ${ROCP_PATH} )
30
31
endif ()
31
32
endif ()
32
33
else ()
33
34
include (${CMAKE_COMMON_LIB_GLOBAL_AMD_HSA_NO_LIB} )
34
- endif ()
35
+ endif ()
You can’t perform that action at this time.
0 commit comments