Skip to content

Commit

Permalink
Merge pull request #4905 from Q-Leap-Networks/master
Browse files Browse the repository at this point in the history
configure: Fix gcc version check for cuda
  • Loading branch information
danpovey committed Jan 31, 2024
2 parents 21ae411 + f785fa0 commit 8c451e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
*)
Expand All @@ -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 ;;
Expand Down

0 comments on commit 8c451e2

Please sign in to comment.