I have a code implemented in pytorch
whenever I run it I receive the following error
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=74 error=35 : CUDA driver version is insufficient for CUDA runtime version
Traceback (most recent call last):
File "main.py", line 510, in <module>
main(parser.parse_args())
File "main.py", line 410, in main
model = torch.nn.DataParallel(model).cuda()
File "/home/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 258, in cuda
return self._apply(lambda t: t.cuda(device))
File "/home/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 185, in _apply
module._apply(fn)
File "/home/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 185, in _apply
module._apply(fn)
File "/home/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 185, in _apply
module._apply(fn)
File "/home/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 185, in _apply
module._apply(fn)
File "/home/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 191, in _apply
param.data = fn(param.data)
File "/home/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 258, in <lambda>
return self._apply(lambda t: t.cuda(device))
RuntimeError: cuda runtime error (35) : CUDA driver version is insufficient for CUDA runtime version at /pytorch/aten/src/THC/THCGeneral.cpp:74
My CUDA version is
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
I read last remark about the driver being to old.
Has someone on this forum experience upgrading NVIDIA and being able to use cuda 8 with pytorch 0.4.1 ?
Same issue here with macOS 10.13.6, CUDA 9.2 and Python 3.6.
RuntimeError: cuda runtime error (35) : CUDA driver version is insufficient for CUDA runtime version at /path/to/pytorch/aten/src/THC/THCGeneral.cpp:74
Are you 100% sure? Iāve just updated my nvidia driver to 410.130 through System Preference pane. And the version Iāve used previously was 396.148. Both versions give me the same error message.
Nope⦠Thanks for letting me know a simple diagnostics.
When I do the followings
~ $ cd ~/NVIDIA_CUDA-9.2_Samples/0_Simple/vectorAdd
~/NVIDIA_CUDA-9.2_Samples/0_Simple/vectorAdd $ make
~/NVIDIA_CUDA-9.2_Samples/0_Simple/vectorAdd $ ./vectorAdd
I get
[Vector addition of 50000 elements]
Failed to allocate device vector A (error code CUDA driver version is insufficient for CUDA runtime version)!
What could I do then?
Thanks in advance.
EDIT
I just realized there is another source of the driver, the Web Driver. (link is here)
The installer of the Web Driver makes the pane in the System Preference. (named āNVIDIA Driver Managerā)
But the version of the Web Driver I installed is 387.10.10.10.40.105 which is lower than the one Iāve been previously using.
Of course, this time also I failed to run the CUDA samples properly.
In the meantime, I also tried CUDA 9.1 but with no luck.
It seems that CUDA with version equal or less than 9.0 is not supported in macOS 10.13.
Now I feel that making development environment of CUDA relative things in macOS is quite tough.