New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Will TensorFlow 2.2.0 support CUDA 10.2? #38194
Comments
CUDA 10.2 should be compatible with CUDA 10.1. We are building the official pips with CUDA 10.1 as we already changed infrastructure a lot to enable Python3.8 pips. Next release will have infrastructure changed for newer CUDA versions. Until then, you can try compiling from source, or symlinking the libraries. |
Symlinking works. |
@Farxial, Closing since the issue is resolved. Thanks! |
UPDATE: WARNING in #34759 (comment) The symlink works for me too, details below (installed on Ubuntu 20.04):
Somewhat at random, I decided to symlink from
I am actually using mostly the CPU (my 8 core CPU seems faster than a smallish laptop GPU and also the GPU runs easily into OOM for real work-loads). |
Just to confirm, symlink idea works on Windows too. I symlinked C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\cudart64_102.dll as cudart64_101.dll in the same folder. |
In Here are the modifications to the https://www.tensorflow.org/install/gpu instructions that worked for me:
This works for a clean install. For pre-existing configurations you may need to uninstall previous Cuda 10-1 packages beforehand. |
Just to confirm solution by @palisadoes works. |
I had to install libnvinfer-plugin-dev to fix /usr/include/x86_64-linux-gnu/NvInferPlugin.h file not found dpkg -l | grep libnvinfer |
Expanding on the Windows fix for people who aren't familiar (like myself) with symlinks and just want it to work. mklink /H "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\cudart64_101.dll" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\cudart64_102.dll" Alternatively and more clearly written, navigate to the directory and do the same thing: cd "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin"
mklink /H cudart64_101.dll cudart64_102.dll I'm quite surprised that there doesn't exist out-of-the-box support for CUDA 10.2 yet. I mean, CUDA 11 is out. |
after trying most every solution I could find for windows even with @thomasaarholt fix,
all the tensorflow dlls could be imported and everything works got the hint to try this here , https://stackoverflow.com/questions/59330863/cant-import-dll-module-in-python |
After many months, CUDA 10.2 still cannot work with TF 2.2? |
TF2.2 won't be patched to support newer CUDA versions. We can only bring new versions of CUDA with newer versions of TF (likely 2.4) |
I am desperate for 10.2 support! - my company has bought me a graphics card and I can't get it to play with Cuda desite all the above suggestions. I have tried the nightly build of Tensorflow (which is 2.4) - but seems it still looks for 10.1. Has anybody produced a build that supports 10.2 ? |
Please try |
thanks very much. The following specifications were found to be incompatible with your CUDA driver:
- feature:/win-64::__cuda==10.2=0
- feature:|@/win-64::__cuda==10.2=0
Your installed CUDA driver is: 10.2 |
I think that in this case the best solution is to try building on the target machine with the 10.2 CUDA headers. NVidia claims compatibility between 10.1 and 10.2 so it should be possible to compile from source and have something working |
on my windows machine with RTX2060, symlink works again for the cudnn. cd "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin" |
Compiled v2.3.1 for Cuda 10.2 in my fork: |
Is this valid only on |
Hi :) I am going to use neural networking and TensorFlow.
I'm trying to install different versions of tensorflow and tensorflow-gpu using pip (for example, 2.1.0 both tensorflow and tensorflow-gpu, 2.2.0-rc0 both tensorflow and tensorflow-gpu) and in Python (3.7) I get error about loading
cudart64_101.dll
, like this:>>> import tensorflow as tf
2020-03-31 03:30:42.120394: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found 2020-03-31 03:30:42.134395: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
I copied cuDNN files, also I set
CUDA_HOME
env. to value ofCUDA_PATH
env. My hardware meets the requirements.As far as I understand, TensorFlow 2.1.0 should work fine with CUDA 10.1. But I don't want to use CUDA 10.1 unless emergency, I just install 10.2 and don't want to reinstall it to reinstall back to 10.2 again in future.
I ready to wait for 2.2.0 release, if that makes sense in my case. So my question is: Will TensorFlow 2.2.0 support CUDA 10.2?
The text was updated successfully, but these errors were encountered: