What are the steps to get tensorflow-gpu
2.x Python package working on Windows with an NVidia GPU?
I.e. how can I get rid of Could not find \'cudart64_
https://www.nvidia.com/Download/index.aspx
pip uninstall tensorflow
pip install tensorflow-gpu
At first the following test will fail, pay attention to version of missing file e.g. Could not find 'cudart64_101.dll'
import tensorflow
tensorflow.test.is_built_with_gpu_support() # Test install of pip package, should output True
tensorflow.test.is_gpu_available() # Should output True
tensorflow.test.gpu_device_name() # Should output something like /device:GPU:0
https://developer.nvidia.com/cuda-10.1-download-archive-base?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal
Select custom setup and:
CUDA
/ Visual Studio Integration
Driver components
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;
Will fail, pay attention to version of missing file e.g. Could not find 'cudnn64_7.dll'
https://developer.nvidia.com/rdp/cudnn-archive
cuda
folder into: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\
(or the version you downloaded and installed)