CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

hi, I downloaded cntk binary 1.6, but i am unable to run even the simple2d from examples using GPU.

Open asim33 opened this issue 10 years ago • 12 comments

asim33 avatar Aug 29 '16 09:08 asim33

hi, I downloaded cntk binary 1.6, but i am unable to run even the simple2d from examples using GPU. I am getting Curand 201 failure error message .. I am using GTX 1070. and have tried randomize = none. here is screen shot , what I am getting.

configparameters: Simple.cntk:traceLevel=1 <<<<<<<<<<<<<<<<<<<< PROCESSED CONFIG WITH ALL VARIABLES RESOLVED <<<<<<<<<<<<<<<<<<<< Commands: Simple_Demo_Train Simple_Demo_Test Simple_Demo_Output Precision = "float" CNTKModelPath: ../Output/Models/simple.dnn CNTKCommandTrainInfo: Simple_Demo_Train : 10 CNTKCommandTrainInfo: CNTKNoMoreCommands_Total : 10

##############################################################################

Action "train"

##############################################################################

CNTKCommandTrainBegin: Simple_Demo_Train LockDevice: Locked GPU 0 to test availability. LockDevice: Unlocked GPU 0 after testing. LockDevice: Locked GPU 1 to test availability. LockDevice: Unlocked GPU 1 after testing. LockDevice: Locked GPU 0 for exclusive use. SimpleNetworkBuilder Using GPU 0

Creating virgin network. Microsoft::MSR::CNTK::GPUMatrix::SetUniformRandomValue (GPU): creating curand object with seed 1, sizeof(ElemType)==4 CURAND failure 201: (see curand.h & look for curandStatus or CURAND_STATUS_xxx) ; GPU=0 ; hostname=DESKTOP-MQ49EQ4 ; expr=curandGenerateUniform(((curandGenerator_t_) s_curandGenerator)[0], reinterpret_cast<float_>(Data()), GetNumElements())

[CALL STACK] > Microsoft::MSR::CNTK::GPUMatrix:: SetUniformRandomValue - Microsoft::MSR::CNTK::Matrix:: SetUniformRandomValue - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator= - Microsoft::MSR::CNTK::TracingGPUMemoryAllocator:: operator=

EXCEPTION occurred: CURAND failure 201: (see curand.h & look for curandStatus or CURAND_STATUS_xxx) ; GPU=0 ; hostname=DESKTOP-MQ49EQ4 ; expr=curandGenerateUniform(((curandGenerator_t_) s_curandGenerator)[0], reinterpret_cast<float_>(Data()), GetNumElements())

asim33 avatar Aug 29 '16 09:08 asim33

We have encountered incompatibilities between 1.6 and CUDA 8 drivers. 1.7 binaries are hopefully coming out today, which should work. (If also you self-build, you can also build them from the latest master sources, which is already up-to-date.)

frankseide avatar Aug 29 '16 20:08 frankseide

Hello, I still have the same problem with 1.7 binaries, GTX1070 graphics card. Do you have any idea?

chelhwon avatar Aug 31 '16 21:08 chelhwon

Hi, i also tried 1.7. But. Still. Same curand 201 error. But one thing for sure. Cuda 7.5 does not recognize 10 series. Gpu. And seems not compatible with newer drivers. I want to build using cuda 8. Any instructions for this would be nice to have. As existing ones are for cuda 7.5.

asim33 avatar Sep 01 '16 04:09 asim33

What is the version of the driver you are using? Also, is this Windows or Linux?

chrisbasoglu avatar Sep 01 '16 19:09 chrisbasoglu

I am using 372.70-desktop-win10-64bit driver.

chelhwon avatar Sep 01 '16 19:09 chelhwon

I tried running the example with CNTK 1.7 (binary release) on my 1080. I made sure dropout is used to ensure curand needs to be called. I can't reproduce this error. However, I am on Linux. Do you mind running the dependency walker (http://www.dependencywalker.com/) on your cntk and telling us which dll does curand resolve to?

n17s avatar Sep 01 '16 20:09 n17s

Hi, Thank you for the info. I opened CNTK.exe with the dependency walker and I can see the following tree structure: CNTK.exe -> MATH.DLL -> CURAND64_75.DLL. I don't see any errors in the tree but I got many missing dll errors from other sub-trees (ex. API-MS-WIN-.DLL and EXT-MS-WIN-.DLL ) I've never used the dependency walker so if I missing something please let me know. Thanks!

chelhwon avatar Sep 01 '16 21:09 chelhwon

I just tried on a Windows 10 machine with a GTX 1080 and your driver version. I was able to reproduce the failure. We will figure out a fix and get back to you.

n17s avatar Sep 01 '16 23:09 n17s

It turns out that on Pascal GPUs curand does not work with CUDA 7.5. You need to upgrade to CUDA 8.0. Furthermore, at this point we do not provide any CNTK binaries that are built with CUDA 8.0 so you will have to compile from source. Compilation should be easy though because the necessary updates were integrated to master last week.

I am closing this issue. Feel free to reopen if you still cannot get things to work after the above steps.

n17s avatar Sep 01 '16 23:09 n17s

With cuda 8. And build from master.. Its working. And issue resolved. Thanks a lots.

asim33 avatar Sep 04 '16 18:09 asim33

I was able to compile from source and checked it works. Thank you!

chelhwon avatar Sep 05 '16 18:09 chelhwon