hipcc defaults to HIP-Clang if built with HIP-Clang

Add HIP_COMPILER to hipConfig, so that HIP packages built with HIP_COMPILER for HIP-Clang will be known during runtime by hipcc. Also add default locations to check for llvm and device-libs.
This commit is contained in:
Aaron Enye Shi
2019-02-01 16:52:55 +00:00
parent 910236473f
commit 489cef167f
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -71,6 +71,7 @@ if(NOT (HIP_COMPILER STREQUAL "hcc" OR HIP_COMPILER STREQUAL "clang"))
message(FATAL_ERROR "Must use HIP_COMPILER as hcc or clang")
endif()
message(STATUS "HIP Compiler: " ${HIP_COMPILER})
add_to_config(_buildInfo HIP_COMPILER)
# If HIP_PLATFORM is hcc, we need HCC_HOME and HSA_PATH to be defined