Skip to content

CSE 160 Programming Assignments - Winter 2023

Notifications You must be signed in to change notification settings

ycyao216/cse160-WI23

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cse160-WI23

Materials for CSE 160 Programming Assignments

Access DSMLP using ssh

You will use the UCSD Data Science / Machine Learning Platform (DSMLP) to get access to a GPU.

You can login to DSMLP using by ssh [email protected]. Your username and password are your UCSD account. You can set up an ssh key that allows you to more easily login.

DSMLP uses containers to set up its software environment. You must create a container that provides access to a GPU with CUDA installed using the command launch.sh -g 1 -s -i ucsdets/nvcr-cuda:latest -W CSE160_WI23_A00

Once you have that container, you can compile and run the Makefiles in the PA directories.

Please be considerate on your use of the GPUs. The GPUs in DSMLP are shared within this class and across campus. If you are not actively using the GPU, you should shut down the container to allow others to access it.

Access DSMLP using VSCode

It is possible to access DSMLP using a local version of VSCode.

Steps:

  1. Create an SSH Key on your local machine and append the public key to DSMLP's ~/.ssh/authorized_keys file
  2. Install VS Code https://code.visualstudio.com/download
  3. Install Remote-SSH plugin by searching for it in the extensions view
  4. Click on the indicator on the bottom left corner

image

  1. Click on Open SSH Configuration File ... and select any configuration file
  2. Add the following lines:
Host vscode-dsmlp
HostName dsmlp-login.ucsd.edu
HostKeyAlias vscode-dsmlp
IdentitiesOnly yes
User 'active directory username'
ProxyCommand ssh -i 'path to local private key' 'active directory username'@dsmlp-login.ucsd.edu launch-cse160-ssh.sh -g 1 -p normal
  1. Click on the >< key at the bottom left corner and then click on Connect to Host ... You should see a vscode-dsmlp option. Click on it to start your session.

A video is attached in case there are any issues with following the steps:

Screen.Recording.2023-01-16.at.4.54.32.PM.mp4

You already have access to GPU infrastructure on DSMLP; i.e. it starts a container with GPU access and loads it with a software image that contains CUDA and other basic packages.

You must be within GPU container in order to properly compile. If you get an error about not having access to nvcc, then you are not in the container.

Please only use the container when you are compiling and release it when you are completed.

About

CSE 160 Programming Assignments - Winter 2023

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 67.7%
  • C 25.0%
  • Cuda 3.6%
  • Makefile 2.7%
  • CMake 1.0%