File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,11 @@ 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-9 2> /dev/null && version_gt 9.4 ` gcc-9 -dumpversion` ; then
66+ if hash gcc 2> /dev/null && version_gt 10.3 ` gcc -dumpversion` ; then
67+ export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc" }
68+ elif hash gcc-10 2> /dev/null && version_gt 10.3 ` gcc-10 -dumpversion` ; then
69+ export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc-10" }
70+ elif hash gcc-9 2> /dev/null && version_gt 9.4 ` gcc-9 -dumpversion` ; then
6771 export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc-9" }
6872 elif hash gcc-8 2> /dev/null && version_gt 8.5 ` gcc-8 -dumpversion` ; then
6973 export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc-8" }
You can’t perform that action at this time.
0 commit comments