File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ if [ "$cuda_allowed" == true ] && [ "$cuda_available" == true ]; then
6363
6464 # choose the right version of CUDA compiler
6565 if [ -z " $GCC_HOST_COMPILER_PATH " ]; then
66- if hash gcc-8 2> /dev/null && version_gt 8.5 ` gcc-8 -dumpversion` ; then
66+ if hash gcc-9 2> /dev/null && version_gt 9.4 ` gcc-9 -dumpversion` ; then
67+ export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc-9" }
68+ elif hash gcc-8 2> /dev/null && version_gt 8.5 ` gcc-8 -dumpversion` ; then
6769 export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc-8" }
6870 elif hash gcc-7 2> /dev/null && version_gt 7.5 ` gcc-7 -dumpversion` ; then
6971 export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc-7" }
You can’t perform that action at this time.
0 commit comments