https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html
- Remove any preinstalled drivers, or nvidia stuff with this
- Use GCP provided script to install the latest cuda and drivers.
- Reboot the system and verify
nvidia-smi
andnvcc
- Download tar file for cudnn from here
- Extract and copy library files from /lib folder to $LD_LIBRARY_PATH folder (maybe
/usr/local/cuda-11/lib64/
) pip install tensorflow
should work with GPU support now.
Install seperate versions of cuda, cudnn manually: https://medium.com/analytics-vidhya/install-cuda-11-2-cudnn-8-1-0-and-python-3-9-on-rtx3090-for-deep-learning-fcf96c95f7a1