neuraltalk2 icon indicating copy to clipboard operation
neuraltalk2 copied to clipboard

Error in CuDNN: CUDNN_STATUS_NOT_INITIALIZED

Open anjiang2016 opened this issue 8 years ago • 1 comments

git clone this,and i run this: cd cudnn.torch luarocks make cd test th test_spatiaFullConv.lua

and get this error: Error in CuDNN: CUDNN_STATUS_NOT_INITIALIZED

is that I miss some install command?

anjiang2016 avatar Jul 08 '16 07:07 anjiang2016

fixed.

refresh my cudnn5.0.5 to cudnn5.1.3,use these commands:

  • root@anjiang-System-Prouct-Name:~/Downloads# tar -zxvf cudnn-7.5-linux-x64-v5.1-rc.tgz

  • root@anjiang-System-Product-Name:~/Downloads# cd cuda

  • root@anjiang-System-Product-Name:~/Downloads/cuda# sudo cp lib64/* /usr/local/cuda/lib64/

  • root@anjiang-System-Product-Name:~/Downloads/cuda# sudo cp include/* /usr/local/cuda/include/

  • root@anjiang-System-Product-Name:/usr/local/cuda/lib64# sudo vim /etc/profile and add content to the end: PATH=/usr/local/cuda/bin:$PATH export PATH

  • root@anjiang-System-Product-Name:/usr/local/cuda/lib64# source /etc/profile

  • root@anjiang-System-Product-Name:/usr/local/cuda/lib64# sudo vim /etc/ld.so.conf.d/cuda.conf and add content to the end: /usr/local/cuda/lib64

  • root@anjiang-System-Product-Name:/usr/local/cuda/lib64# sudo ldconfig

    done.

    it outputs like this: anjiang@anjiang-System-Product-Name:~/Downloads/cudnn.torch/test$ th test_spatialFullConv.lua Running test on device: 1
    Running 1 test 1/1 SpatialConvolution_params ........................................... [WAIT]Running testSpatialFullConv (imageWidth = 5, imageHeight = 5, nPlanesIn = 1, nPlanesOut = 1, kW = 3, kH = 3, dW = 2, dH = 2, padW = 0, padH = 0, adjW = 0, adjH = 0 Running testSpatialFullConv (imageWidth = 5, imageHeight = 5, nPlanesIn = 1, nPlanesOut = 1, kW = 3, kH = 3, dW = 2, dH = 2, padW = 1, padH = 1, adjW = 0, adjH = 0 Running testSpatialFullConv (imageWidth = 5, imageHeight = 7, nPlanesIn = 1, nPlanesOut = 1, kW = 3, kH = 1, dW = 2, dH = 2, padW = 1, padH = 1, adjW = 0, adjH = 0 Running testSpatialFullConv (imageWidth = 7, imageHeight = 5, nPlanesIn = 1, nPlanesOut = 1, kW = 3, kH = 1, dW = 1, dH = 1, padW = 1, padH = 1, adjW = 0, adjH = 0 Running testSpatialFullConv (imageWidth = 8, imageHeight = 5, nPlanesIn = 3, nPlanesOut = 1, kW = 3, kH = 3, dW = 2, dH = 2, padW = 1, padH = 1, adjW = 0, adjH = 0 Running testSpatialFullConv (imageWidth = 5, imageHeight = 5, nPlanesIn = 1, nPlanesOut = 3, kW = 3, kH = 3, dW = 2, dH = 2, padW = 1, padH = 1, adjW = 0, adjH = 0 Running testSpatialFullConv (imageWidth = 5, imageHeight = 5, nPlanesIn = 5, nPlanesOut = 3, kW = 3, kH = 3, dW = 2, dH = 2, padW = 1, padH = 1, adjW = 1, adjH = 1 Running testSpatialFullConv (imageWidth = 9, imageHeight = 9, nPlanesIn = 3, nPlanesOut = 3, kW = 3, kH = 5, dW = 2, dH = 3, padW = 0, padH = 1, adjW = 1, adjH = 0 1/1 SpatialConvolution_params ........................................... [PASS]

anjiang2016 avatar Jul 08 '16 09:07 anjiang2016