Added instructions for GPU

This commit is contained in:
2024-04-08 12:48:59 -04:00
parent 6e56019325
commit 805c22b9ea

View File

@@ -10,13 +10,28 @@
# This upgrades all modules
#py -mpip freeze | %{$_.split('==')[0]} | %{py -mpip install --upgrade $_}
# installed
# py -mpip install flask
# py -mpip install numpy
# I think all you need to do is the following to get CUDA to work with python.
# 1) Install CUDA 11.8 Toolkit from here
# https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Windows&target_arch=x86_64&target_version=11&target_type=exe_local
# 2) The binaries should wind up in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin
# 3) Put the above path in the PATH environment variable
# 4) Also download cuDNN from here https://developer.nvidia.com/cudnn because tensorflow will look for cudnn64_8.dll which is i that package
# This download is just a bunch of DLLs with no install program. I left it in downloads folder.
# 5) put C:\download\cuDNN\cudnn-windows-x86_64-8.9.7.29_cuda11-archive\bin in the path
# 6) Run the check_gpu.py program and ensure no errors loading DLLs
# installed version
# py -m pip install keras==2.6.0
# py -mpip install flask==2.0.1
# py -mpip install numpy==1.19.5
# py -mpip show numpy
# py -mpip install tensorflow
# py -mpip install tensorflow==2.6.0
# py -mpip show tensorflow
# py -mpip install matplotlib
# py -mpip install matplotlib==3.4.3
# c:\users\skess\appdata\local\programs\python\python39\lib\site-packages
import keras