sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install git zip unzip
wget https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-ubuntu1804-10-1-local-10.1.105-418.39_1.0-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.105-418.39_1.0-1_amd64.deb
sudo apt-key add /var/cuda-repo-ubuntu1804-10-1-local-10.1.105-418.39/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
echo 'export PATH=/usr/local/cuda-10.1/bin${PATH:+:${PATH}}' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}' >> ~/.bashrc
source ~/.bashrc
Download cuDNN v7.6.5 from NVIDIA as in Local Setup. Note that this time you are installing cuDNN on virtual machine instance with Linux.
gcloud compute scp [LOCAL_FILE_PATH] ecbm4040@your-instance-name:
cp cudnn-10.1-linux-x64-v7.6.5.32.solitairetheme8 cudnn-10.1-linux-x64-v7.6.5.32.tgz
tar xvf cudnn-10.1-linux-x64-v7.6.5.32.tgz
sudo cp cuda/include/cudnn.h /usr/local/cuda/include
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
https://repo.anaconda.com/archive/Anaconda3-2020.02-Windows-x86_64.exe
bash https://repo.anaconda.com/archive/Anaconda3-2020.02-Windows-x86_64.exe
source ~/.bashrc
conda create -n envTF22 python=3.7
conda activate envTF22
conda install pandas numpy scipy pillow matplotlib scikit-learn
conda install -c conda-forge jupyterlab
conda install tensorflow-gpu==2.2
Now you can proceed to Step 3 in GCP Setup.