Files
rocm-systems/projects/hip/bin/hipcc_cmake_linker_helper
T

10 lines
336 B
Bash
Raw Normal View History

#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
HIP_PATH="$( command cd -P "$( dirname "$SOURCE" )/.." && pwd )"
2020-04-29 05:41:12 -04:00
HIP_COMPILER=$(eval "$HIP_PATH/bin/hipconfig --compiler")
if [ "$HIP_COMPILER" = "hcc" ]; then
HCC_HOME=$1 $HIP_PATH/bin/hipcc "${@:2}"
elif [ "$HIP_COMPILER" = "clang" ]; then
HIP_CLANG_PATH=$1 $HIP_PATH/bin/hipcc "${@:2}"
fi