Compile without CuDNN
Do we have to use cuDNN for CNTK? I think for some older version, it was not necessary. But now the makefile has:
ifdef CUDA_PATH
MATH_SRC +=
$(SOURCEDIR)/Math/GPUMatrix.cu
$(SOURCEDIR)/Math/GPUTensor.cu
$(SOURCEDIR)/Math/GPUSparseMatrix.cu
$(SOURCEDIR)/Math/GPUWatcher.cu
$(SOURCEDIR)/Math/MatrixQuantizerGPU.cu
$(SOURCEDIR)/Math/CuDnnCommon.cu
$(SOURCEDIR)/Math/CuDnnConvolutionEngine.cu
$(SOURCEDIR)/Math/CuDnnBatchNormalization.cu
$(SOURCEDIR)/Math/GPUDataTransferer.cpp
else
Does it means we cannot disable cuDNN?
thanks
there's a ifdef CUDA_PATH at the top. if you don't specify that variable, it will build only CPU version and GPU files are not needed.
@alahiri-microsoft I mean can we build it with CUDA but without cuDNN?
thanks,
I don't think so.
Hello, We made cuDNN a required component some time ago. cuDNN can be downloaded directly from NVIDIA website, no registration required (just follow the steps in our setup Wiki),
Is cuDNN 5 RC supported yet?
Not in the master, but I have it in one of my branches, let me know if you are interested. We will migrate to v5 only after its production release.
Hi @Alexey-Kamenev , I see. BBN found that after they update CNTK from "Apr 11's builds 110e330e5b490c97d4836374ed83fbe642e4f857" to "Apr 20's builds", they got an cublas error on Tesla K80. Is there any big change for the Math lib between this period?
minibatchiterator: epoch 0: frames [0..14739390](first utterance at frame 0), data subset 0 of 1, with 1 datapasses
requiredata: determined feature kind as 40-dimensional
CUBLAS failure 14: CUBLAS_STATUS_INTERNAL_ERROR ; GPU=1 ; hostname=babg300.bbn.com ; expr=cublas_gemm(cuHandle, CUBLAS_OP_N, CUBLAS_OP_N, (int) ARows, 1, (int) ACols, &alpha, a.Data()+ offsets[0], (int) ALd, GetOnesVector
Thanks a lot!
Closing, the original question was answered.