Open postuur opened 7 years ago
Possible solution: There seems to be an obvious memory issue on the GPU. I'm running a low-end GPU at the moment (GTX 660 Ti), and have the upgraded ubuntu 16.04 which might be slightly more visually demanding than 14.04. I checked the cnmem value in ~/.theanorc, and it was set to 0.95. Reducing it allowed me to run 'import theano' without the error. Will play around a bit more to verify this tomorrow.
Yes, it seems that this was the problem. Unfortunately I have to lower the cnmem each time by hand, so I'm leaving this open if someone can suggest a more permanent way to modify .theanorc in dl-docker.
Hey, I've now tried several different approaches to get the dl-docker to work, but none of them seem to cut the deal. So, here's one of the attempts I made, maybe it points to a common problem in all of the attempts.
I installed the dl-docker the way shown here: https://github.com/saiprashanths/dl-docker
on top of a fresh Ubuntu 16.04.1, with a cpu i7 and gpu GTX 660 Ti.
Tried to use jupyter with the following commands:
sudo nvidia-docker run -it -p 8888:8888 -p 6006:6006 -v /sharedfolder:/root/sharedfolder floydhub/dl-docker:gpu bash -> in the bash: jupyter notebook -> in firefox, opened a python2 and there: import theano
Then I got the following error report:
ERROR (theano.sandbox.cuda): ERROR: Not using GPU. Initialisation of device gpu failed: initCnmem: cnmemInit call failed! Reason=CNMEM_STATUS_OUT_OF_MEMORY. numdev=1
RuntimeError Traceback (most recent call last)