Fix missed VDI names in hip-on-rocclr

Change-Id: I830feb37a043656136648e92a0c6f1eaae8402d7
This commit is contained in:
Aaron Enye Shi
2020-05-06 20:10:27 +00:00
committed by Aaron En Ye Shi
parent 861d07fbd3
commit 1c1be71b63
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ $HIP_PLATFORM= `$HIP_PATH/bin/hipconfig --platform` // "hcc";
$HIP_VERSION= `$HIP_PATH/bin/hipconfig --version`;
#HIP_COMPILER controls whether to use hcc, clang or nvcc for compilation:
$HIP_COMPILER= `$HIP_PATH/bin/hipconfig --compiler`;
#HIP_RUNTIME controls whether to use HCC, VDI, or NVCC as the runtime:
#HIP_RUNTIME controls whether to use HCC, ROCclr, or NVCC as the runtime:
$HIP_RUNTIME= `$HIP_PATH/bin/hipconfig --runtime`;
# If using ROCclr runtime, need to find HIP_ROCclr_HOME
+2 -2
View File
@@ -118,8 +118,8 @@ if ($HIP_COMPILER eq "clang") {
$CPP_CONFIG = " -D__HIP_PLATFORM_HCC__= -I$HIP_PATH/include -I$HIP_CLANG_PATH/../lib/clang/$HIP_CLANG_VERSION -I$HSA_PATH/include";
}
if ($HIP_RUNTIME eq "VDI") {
$CPP_CONFIG .= " -D__HIP_VDI__";
if ($HIP_RUNTIME eq "ROCclr") {
$CPP_CONFIG .= " -D__HIP_ROCclr__";
}
if ($HIP_PLATFORM eq "nvcc") {
$CPP_CONFIG = " -D__HIP_PLATFORM_NVCC__= -I$HIP_PATH/include -I$CUDA_PATH/include";