File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,7 @@ if [ "$cuda_allowed" == true ] && [ "$cuda_available" == true ]; then
6161
6262 # choose the right version of CUDA compiler
6363 if [ -z " $GCC_HOST_COMPILER_PATH " ]; then
64- if hash gcc 2> /dev/null && version_gt 10.3 ` gcc -dumpversion` ; then
65- export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc" }
66- elif hash gcc-10 2> /dev/null && version_gt 10.3 ` gcc-10 -dumpversion` ; then
64+ if hash gcc-10 2> /dev/null && version_gt 10.3 ` gcc-10 -dumpversion` ; then
6765 export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc-10" }
6866 elif hash gcc-9 2> /dev/null && version_gt 9.4 ` gcc-9 -dumpversion` ; then
6967 export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc-9" }
You can’t perform that action at this time.
0 commit comments