diff --git a/src/configure b/src/configure index 37a75a5cade..82e4e3d9149 100755 --- a/src/configure +++ b/src/configure @@ -389,8 +389,8 @@ Either your CUDA is too new or too old." CUSOLVER=true ;; 12_*) - MIN_UNSUPPORTED_GCC_VER="12.2" - MIN_UNSUPPORTED_GCC_VER_NUM=122000 + MIN_UNSUPPORTED_GCC_VER="12.3" + MIN_UNSUPPORTED_GCC_VER_NUM=123000 CUSOLVER=true ;; *) @@ -399,9 +399,10 @@ Please open an issue at https://github.com/kaldi-asr/kaldi/issues and include\ output of either 'nvcc -h' or 'ptxas -h'." ;; esac - (( GCC_VER_NUM < MIN_UNSUPPORTED_GCC_VER_NUM )) || + if [ $GCC_VER_NUM -ge $MIN_UNSUPPORTED_GCC_VER_NUM ]; then failure "CUDA $CUDA_VERSION does not support $CXX (g++-$GCC_VER).\ Only versions strictly older than $MIN_UNSUPPORTED_GCC_VER are supported." + fi case $CUDA_VERSION in [1-8]_* | 9_0) CUSOLVER=false ;;