当看steps/nnet/train.sh脚本内部时,我们将看到:
CUDA是需要的,如果没有检测到GPU或者CUDA没有被编译,脚本将退出。(你可以坚持使用’–skip-cuda-check true’来使用CPU运行,但是速度将慢10-20倍)
编译时不使用cuda
# ./configure --use-cuda=no # disable CUDA detection (will build cpu-only
# # version of kaldi even on CUDA-enabled machine
编译时使用cuda
#./configure --cudatk-dir=DIR CUDA toolkit directory