You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[build,src] Enhancements to the cudamatrix/cudavector classes. (kaldi-asr#3373)
* Added CuSolver to the matrix class. This is only supported with
Cuda 9.1 or newer. Calling CuSolver code without Cuda 9.1 or newer
will result in a runtime error.
This change required some changes to the build system which requires
versioning the configure script. This forces everyone to reconfigure.
Failure to reconfigure would result in linking and build errors on
some systems.
Copy file name to clipboardExpand all lines: src/configure
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@
39
39
40
40
# This should be incremented after any significant change to the configure
41
41
# script, i.e. any change affecting kaldi.mk or the build system as a whole.
42
-
CONFIGURE_VERSION=10
42
+
CONFIGURE_VERSION=11
43
43
44
44
# We support bash version 3.2 (Macs still ship with this version as of 2019)
45
45
# and above.
@@ -433,22 +433,32 @@ function configure_cuda {
433
433
7_*)
434
434
MIN_UNSUPPORTED_GCC_VER="5.0"
435
435
MIN_UNSUPPORTED_GCC_VER_NUM=50000;
436
+
CUSOLVER=false
436
437
;;
437
438
8_*)
438
439
MIN_UNSUPPORTED_GCC_VER="6.0"
439
440
MIN_UNSUPPORTED_GCC_VER_NUM=60000;
441
+
CUSOLVER=false
440
442
;;
441
-
9_0 | 9_1)
443
+
9_0)
442
444
MIN_UNSUPPORTED_GCC_VER="7.0"
443
445
MIN_UNSUPPORTED_GCC_VER_NUM=70000;
446
+
CUSOLVER=false
447
+
;;
448
+
9_1)
449
+
MIN_UNSUPPORTED_GCC_VER="7.0"
450
+
MIN_UNSUPPORTED_GCC_VER_NUM=70000;
451
+
CUSOLVER=true
444
452
;;
445
453
9_2 | 9_* | 10_0)
446
454
MIN_UNSUPPORTED_GCC_VER="8.0"
447
455
MIN_UNSUPPORTED_GCC_VER_NUM=80000;
456
+
CUSOLVER=true
448
457
;;
449
458
10_1 | 10_*)
450
459
MIN_UNSUPPORTED_GCC_VER="9.0"
451
460
MIN_UNSUPPORTED_GCC_VER_NUM=90000;
461
+
CUSOLVER=true
452
462
;;
453
463
*)
454
464
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;
@@ -492,6 +502,8 @@ function configure_cuda {
492
502
echo CUDA = true>> kaldi.mk
493
503
echo CUDATKDIR = $CUDATKDIR>> kaldi.mk
494
504
echo"CUDA_ARCH = $CUDA_ARCH">> kaldi.mk
505
+
506
+
495
507
echo>> kaldi.mk
496
508
497
509
# 64bit/32bit? We do not support cross compilation with CUDA so, use direct
@@ -512,6 +524,11 @@ WARNING: CUDA will not be used!
0 commit comments