Unverified Commit 2c6c202b authored by Ramesh Errabolu's avatar Ramesh Errabolu Committed by GitHub
Browse files

Update CMakeLists.txt

parent 55d36484
...@@ -120,15 +120,15 @@ if(NOT DEFINED CMAKE_MODULE_PATH) ...@@ -120,15 +120,15 @@ if(NOT DEFINED CMAKE_MODULE_PATH)
endif() endif()
include(utils) include(utils)
#making find_package(has-runtime64 Optional as it can fail when building old hsa # Making find_package(has-runtime64 Optional as it can fail when building old hsa
#When find_package fails, then using old method of find_libraries for # When find_package fails, then using old method of find_libraries for
#searching the required libs for building RBT # searching the required libs for building RBT
find_package(hsa-runtime64 find_package(hsa-runtime64
PATHS /opt/rocm ) PATHS /opt/rocm )
if(${hsa-runtime64_FOUND}) if(${hsa-runtime64_FOUND})
message( " hsa-runtime64 found @ ${hsa-runtime64_DIR} " ) message("hsa-runtime64 found @ ${hsa-runtime64_DIR} " )
else() else()
message(" hsa-runtime64 NOT found Resolving to OLD Way" ) message("hsa-runtime64 NOT found Resolving to OLD Way" )
find_path(ROCR_HDR hsa.h PATHS "/opt/rocm" PATH_SUFFIXES include/hsa REQUIRED ) find_path(ROCR_HDR hsa.h PATHS "/opt/rocm" PATH_SUFFIXES include/hsa REQUIRED )
INCLUDE_DIRECTORIES(${ROCR_HDR}) INCLUDE_DIRECTORIES(${ROCR_HDR})
# Search for ROCr library file # Search for ROCr library file
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment