Good day everyone.
I’m trying to sep up CUDA in my PC (1080ti, Ubuntu 18.04) to get Keras-TF work with my GPU. I’ve done the following:
-
Purged installed drivers
-
Installed Nvidia 390.78 drivers (I think it’s the latest for my 1080ti) with:
-
Installed CUDA Toolkit 9.1 for Ubuntu 17.04 (since there’s no 18.04 option), runfile local version. I didn’t install the driver, though, since it was older. I did install the main toolkit and the 3 available patches
-
Installed cuDNN v7.1.3 (April 17, 2018) for CUDA 9.1, since it was the newer available for CUDA 9.1
-
Installed libcupti
-
Edited my bash file with:
export PATH=/usr/local/cuda-9.1/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
-
Updated (more like checked for the last version of) tensorflow-gpu and keras-gpu, which I had. I use conda, if case it means anything here.
-
Open a jupyter notebook and run:
from tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
- To get:
---------------------------------------------------------------------------
InternalError Traceback (most recent call last)
<ipython-input-2-57062467377b> in <module>()
----> 1 print(device_lib.list_local_devices())
~/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/device_lib.py in list_local_devices(session_config)
39 return [
40 _convert(s)
---> 41 for s in pywrap_tensorflow.list_devices(session_config=session_config)
42 ]
~/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py in list_devices(session_config)
1677 status)
1678 else:
-> 1679 return ListDevices(status)
1680
1681
~/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py in __exit__(self, type_arg, value_arg, traceback_arg)
517 None, None,
518 compat.as_text(c_api.TF_Message(self.status.status)),
--> 519 c_api.TF_GetCode(self.status.status))
520 # Delete the underlying status object from memory otherwise it stays alive
521 # as there is a reference to status from this from the traceback due to
InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
I installed those versions since I thought they were the latest I could set in my PC (dunno if I should use CUDA 9.0 with cuDNN 7.3.0 instead, feel free to give me some advice in that regard).
What can I do? Is there any more info you would need to give me a hand?
Thanks for your time. Sorry if I should be able to get it down or if it’s a dumb question, but I can’t make it work after reading quite a bunch of posts over here…