Repository navigation
CUDA 7.5 fails with pip install and docker (Ubuntu 14.04) #20
Description
Activity
- changed the title
[-]CUDA 7.5 fails with pip install and docker[/-][+]CUDA 7.5 fails with pip install and docker (Ubuntu 14.04)[/+]on Nov 9, 2015 @nivwusquorum haha that's a terrible workaround, as it'll start issues with other libraries. Thanks a lot though. I'm installing CUDA 7.0
@nivwusquorum no.
I'm running into the same issue. Looks like I'll be downgrading then.
Out of curiosity, have you set your LD_LIBRARY_PATH to your cuda installation's lib64 directory?
Reacted by Naveen Dennis Barnabas@ebrevdo yes
printenv LD_LIBRARY_PATH /usr/local/cuda-7.5/lib64Reacted by kailin zhang and SeungHyun JeonOn the subject of CUDA library versions ... CUDA 7.0 works for me (as expected), but it really insists on cuDNN 6.5 (which Nvidia now has as 'legacy').
Exact same library locations, etc, but downgrading from cuDNN 7.0 to 6.5 worked.
yes its within the tensorflow code, so just some simple python hacking wont solve it :)
(_pywrap_tensorflow.so when you pip install the binary):_mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description) ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directoryi assume i have same problem:
I have the 7.5 installed with tensorflow and when I try (like in the tutorial about gpu)
with tf.device('/gpu:0'):
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
c = tf.matmul(a, b)
print(c)
sess.run(c)it breaks !
(in torch7, I have no pbs with gpus)Can we assume tensorflow to be forward compatible with cuda 7.5?
I've got the same problem.
So are you saying that downgrading from cuda 7.5 to 7 should do the trick?
If it helps, I've installed cuda toolkit 7.0 and changed the bash profile reference to the new one and it works.
yes you do not need to reinstall the cuda 7.0 driver, just provide the path to libcudart.so.7.0 at the end of the LD_LIBRARY_PATH variable. After discussing of it with someone of the team, they told me a strange story. It appears thar the old CUDA drivers are very much in demand by the people using AWS of amazon !
can someone confirm ?Long story short: tensorflow currently requires cuda 7.0. If you install version 7.0 in a separate directory from 7.5, and point tensorflow at it via the configure script (or LD_LIBRARY_PATH), it will work. Leaving this open to track future upgrades to the 7.5 SDK.
50 remaining items
- added 7 commits that reference this issue
on Apr 9, 2025 - added 5 commits that reference this issue
on Jul 28, 2025 - added a commit that references this issue
on Nov 26, 2025
Installing via:
# For GPU-enabled version (only install this version if you have the CUDA sdk installed) $ pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whlTried to run the alexnet_benchmark.py and it's looking for CUDA 7.0 specifically.
I have CUDA 7.5 on my machine.
Full stack:
Tried the docker install, but the docker image is configured for a particular NVIDIA driver version, and doesn't work with others. (this is a known issue: docker driver version and system driver version must exactly match)