From a08ffb243cc9542baf1bb180d8fa60e6499230a9 Mon Sep 17 00:00:00 2001 From: Payam Date: Mon, 10 Feb 2020 15:23:58 -0500 Subject: [PATCH] updating cmake comgr search path Change-Id: I692e55ad8517fe5d3f12267beaa721f6a696d98a [ROCm/clr commit: c4a4435ca35f880a70372140738462bd174ab6e8] --- projects/clr/opencl/amdocl/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/projects/clr/opencl/amdocl/CMakeLists.txt b/projects/clr/opencl/amdocl/CMakeLists.txt index 7533d9c7d5..e55ef75eda 100644 --- a/projects/clr/opencl/amdocl/CMakeLists.txt +++ b/projects/clr/opencl/amdocl/CMakeLists.txt @@ -34,7 +34,15 @@ include_directories(${CMAKE_SOURCE_DIR}/khronos/headers) include_directories(${CMAKE_SOURCE_DIR}/khronos/headers/opencl2.2) if(${USE_COMGR_LIBRARY} MATCHES "yes") add_definitions(-DUSE_COMGR_LIBRARY -DCOMGR_DYN_DLL) - find_package(amd_comgr REQUIRED CONFIG) + find_package(amd_comgr REQUIRED CONFIG + PATHS + /opt/rocm/ + PATH_SUFFIXES + cmake/amd_comgr + lib/cmake/amd_comgr + ) + MESSAGE(STATUS "Code Object Manager found at ${amd_comgr_DIR}.") + include_directories("$") else() # include_directories(${CMAKE_SOURCE_DIR}/compiler/driver/src)