mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

KVStore API in CUDA-enabled MxNet does not work without GPU.

Open mcxkarakoc opened this issue 9 years ago • 3 comments

I'm not sure if this is a bug. Maybe intentional.

After I compiled MxNet source with USE_CUDA=1, I tried KVStore API on a Linux machine without GPU. When I use the example in Mxnet docs, CUDA error below is raised after kv.init. "... src/storage/storage.cc:38: Check failed: e == cudaSuccess || e == cudaErrorCudartUnloading CUDA: unknown error "

Example: >>> kv = mx.kv.create('local') # create a local kv store. >>> shape = (2,3) >>> kv.init(3, mx.nd.ones(shape)*2) # CUDA error is raised after this line >>> a = mx.nd.zeros(shape) >>> kv.pull(3, out = a)

For USE_CUDA=0, there is no problem.

mcxkarakoc avatar Dec 25 '16 19:12 mcxkarakoc

This blocks MXNet to release as binary package

howard0su avatar Dec 26 '16 02:12 howard0su

should be fixed by #4550

mli avatar Jan 05 '17 21:01 mli

#4550 confirmed. Just for information: "NVIDIA: no NVIDIA devices found" message is still displayed. Maybe useful.

mcxkarakoc avatar Jan 08 '17 13:01 mcxkarakoc