2
0

Merge pull request #528 from ROCm-Developer-Tools/fix-hipclang-hipcc

HIPCC - Use clang if clang++ is not compiled
Este cometimento está contido em:
Maneesh Gupta
2018-06-28 12:36:49 +05:30
cometido por GitHub
ascendente 2ce48fbc05 73023e0a54
cometimento b326b8a0a6
+6 -1
Ver ficheiro
@@ -115,8 +115,13 @@ if ($HIP_PLATFORM eq "clang") {
$ROCM_PATH=$ENV{'ROCM_PATH'} // "/opt/rocm";
$HIPCC="$HIP_CLANG_PATH/clang++";
$HIPCXXFLAGS .= "-std=c++11 -I$HIP_PATH/include";
$HIPLDFLAGS = "--hip-link --hip-device-lib-path=$DEVICE_LIB_PATH -L$HIP_PATH/lib -lhip_hcc";
# If $HIPCC clang++ is not compiled, use clang instead
if ( ! -e $HIPCC ) {
$HIPCC="$HIP_CLANG_PATH/clang";
$HIPLDFLAGS = "--driver-mode=g++ " . $HIPLDFLAGS;
}
} elsif ($HIP_PLATFORM eq "hcc") {
$HSA_PATH=$ENV{'HSA_PATH'} // "/opt/rocm/hsa";