aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan "yenda" Trmal2017-09-27 12:07:32 -0500
committerDaniel Povey2017-09-27 12:07:32 -0500
commitba00b18c290f4ccaba92aba11e45ac7da2d96396 (patch)
treea7e1df94615946e5e0d7719b800bc9419e4b5de6
parent906006f5a3ee267255242784c678079d00d55e09 (diff)
downloadkaldi-ba00b18c290f4ccaba92aba11e45ac7da2d96396.tar.gz
kaldi-ba00b18c290f4ccaba92aba11e45ac7da2d96396.tar.xz
kaldi-ba00b18c290f4ccaba92aba11e45ac7da2d96396.zip
[build] make configure script allow cuda 9.0 (#1916)
-rwxr-xr-xsrc/configure8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/configure b/src/configure
index ad43abd4b..2ea759b69 100755
--- a/src/configure
+++ b/src/configure
@@ -409,6 +409,13 @@ function configure_cuda {
409 MIN_UNSUPPORTED_GCC_VER="6.0" 409 MIN_UNSUPPORTED_GCC_VER="6.0"
410 MIN_UNSUPPORTED_GCC_VER_NUM=60000; 410 MIN_UNSUPPORTED_GCC_VER_NUM=60000;
411 ;; 411 ;;
412 9_*)
413 MIN_UNSUPPORTED_GCC_VER="7.0"
414 MIN_UNSUPPORTED_GCC_VER_NUM=70000;
415 ;;
416 *)
417 echo "Unsupported CUDA_VERSION (CUDA_VERSION=$CUDA_VERSION), please report it to Kaldi mailing list, together with 'nvcc -h' or 'ptxas -h' which lists allowed -gencode values..."; exit 1;
418 ;;
412 esac 419 esac
413 if [ $GCC_VER_NUM -ge $MIN_UNSUPPORTED_GCC_VER_NUM ]; then 420 if [ $GCC_VER_NUM -ge $MIN_UNSUPPORTED_GCC_VER_NUM ]; then
414 failure "CUDA $CUDA_VERSION does not support $CXX (g++-$GCC_VER). 421 failure "CUDA $CUDA_VERSION does not support $CXX (g++-$GCC_VER).
@@ -421,6 +428,7 @@ function configure_cuda {
421 6_*) CUDA_ARCH="-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50" ;; 428 6_*) CUDA_ARCH="-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50" ;;
422 7_*) CUDA_ARCH="-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53" ;; 429 7_*) CUDA_ARCH="-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53" ;;
423 8_*) CUDA_ARCH="-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62" ;; 430 8_*) CUDA_ARCH="-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62" ;;
431 9_*) CUDA_ARCH="-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62" ;;
424 *) echo "Unsupported CUDA_VERSION (CUDA_VERSION=$CUDA_VERSION), please report it to Kaldi mailing list, together with 'nvcc -h' or 'ptxas -h' which lists allowed -gencode values..."; exit 1 ;; 432 *) echo "Unsupported CUDA_VERSION (CUDA_VERSION=$CUDA_VERSION), please report it to Kaldi mailing list, together with 'nvcc -h' or 'ptxas -h' which lists allowed -gencode values..."; exit 1 ;;
425 esac 433 esac
426 434