Skip to content

Commit 8c451e2

Browse files
authored
Merge pull request #4905 from Q-Leap-Networks/master
configure: Fix gcc version check for cuda
2 parents 21ae411 + f785fa0 commit 8c451e2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/configure

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ Either your CUDA is too new or too old."
389389
CUSOLVER=true
390390
;;
391391
12_*)
392-
MIN_UNSUPPORTED_GCC_VER="12.2"
393-
MIN_UNSUPPORTED_GCC_VER_NUM=122000
392+
MIN_UNSUPPORTED_GCC_VER="12.3"
393+
MIN_UNSUPPORTED_GCC_VER_NUM=123000
394394
CUSOLVER=true
395395
;;
396396
*)
@@ -399,9 +399,10 @@ Please open an issue at https://github.com/kaldi-asr/kaldi/issues and include\
399399
output of either 'nvcc -h' or 'ptxas -h'."
400400
;;
401401
esac
402-
(( GCC_VER_NUM < MIN_UNSUPPORTED_GCC_VER_NUM )) ||
402+
if [ $GCC_VER_NUM -ge $MIN_UNSUPPORTED_GCC_VER_NUM ]; then
403403
failure "CUDA $CUDA_VERSION does not support $CXX (g++-$GCC_VER).\
404404
Only versions strictly older than $MIN_UNSUPPORTED_GCC_VER are supported."
405+
fi
405406

406407
case $CUDA_VERSION in
407408
[1-8]_* | 9_0) CUSOLVER=false ;;

0 commit comments

Comments
 (0)