
Assignment 0 - Proof of Working Development Environments
Please perform initial steps to get started with three different places to run code for the course.
1. Local Installation: Following the platform dependent instructions on the course website, install miniconda, and setup
separate conda environments for pytorch and tensorflow both with and without GPU acceleration. There should be
at least 4 conda environments when you are done - (pytorch vs tensorflow) times (cpu vs gpu). You should have a
tool to monitor GPU usage (nvtop on wsl/linux, GPU-Z by techpowerup sensor tab, or OS builtins like task manager).
Additionally, ensure you have installed the gcloud CLI and rclone, as detailed in the instructions in the course website.
2. Colab: Following the process in lecture, navigate to your google drive, enable colab, open a notebook, and complete
what is listed in “what you must submit” for it below.
3. Google Cloud Platform First Step: Follow the instructions in lecture to accept the course credits, enable compute
engine, create a new project, and update the GPU related quotas for that pro ject.
Submit the Following Into BB-Learn
Submit a zip file abc123-lab0.tgz into the course website, containing the following:
1. Screenshot localInstall-tf-gpu.png showing you running the tensorflow gpu testing code within the gpu-enabled tensorflow
conda environment, alongside a GPU usage plotting tool showing that the GPU recently had higher utilization when
you ran the code. The usage history plotting tool could be nvtop (linux or wsl), GPU-Z (windows - sensor tab), actvity
monitor (macos - use window-GPU history).
2. Screenshot localInstall-torch-gpu.png showing you running the pytorch gpu testing code within the gpu-enabled pytorch
conda environment, alongside a GPU usage plotting tool showing that the GPU recently had higher utilization when
you ran the code. The usage history plotting tool could be nvtop (linux or wsl), GPU-Z (windows - sensor tab), actvity
monitor (macos - use window-GPU history).
3. Screenshot colabTestN.png of you running the python code
import tensorflow as tf
print(tf.__version__)
# enter into next cell
print(tf.reduce_sum(tf.random.normal([1000,1000])))
#enter into next cell
print(tf.config.list_physical_devices())
#enter into next cell
with open('drive/MyDrive/testSync/hello.txt','r')as inFile:
print(inFile.read())
#final cell
with open('drive/MyDrive/testSync/thisWorked.txt','w')as outFile:
outFile.write('this worked!')
in cells in a colab notebook after 1- enabling the GPU (in notebook settings), 2- mounting your google drive, and 3-
using a rclone sync command to sync a local ”testSync” folder you created containing a single file hello.txt containing
only the text “hello!” to your google drive.
4. A screenshot syncedToOneDrive.png showing that your university oneDrive successfully has the folder ”testSync” con-
taining the two text files after you use a rclone sync command to copy the google drive folder there.
5. A screenshot syncedToLocal.png showing that your local ”testSync” folder now has both of the two text files after you
use a rclone sync command to sync your local copy to match the google drive version.
6. A screenshot gcpBilling.png showing a GCP project you have created and linked to the billing account from your
education credits.
7. A screenshot gcpGPUquota1.png showing that your GPUs all regions quota is 1 (after you requested your quota increase
request and had it approved).
8. A screenshot gcpGPUquota2.png showing that you the T4 GPU limits in the US regions are 1 (take after you have
submitted your quota update request and it has been approved).
9. After you run gcloud init, and provide the anwers to link with the google account you will use for GCP and the project
you created and set up the compute engine in, make a screenshot (gcloudWorks.png) showing what is printed when you
run within a shell for your google cloud SDK the following queries
gcloud config list account
gcloud config get-value project
gcloud config get-value compute/region
1