University of British Columbia
Tony Liang
September 27, 2023
I would like to acknowledge that I work on the traditional, ancestral, and unceded territory of the Coast Salish Peoples, including the territories of the xwməθkwəy̓əm (Musqueam), Skwxwú7mesh (Squamish), Stó:lō and Səl̓ílwətaʔ/Selilwitulh (Tsleil- Waututh) Nations.
Traditional: Traditionally used and/or occupied by Musqueam people
Ancestral: Recognizes land that is handed down from generation to generation
Unceded: Refers to land that was not turned over to the Crown (government) by a treaty or other agreement
Checkout the instruction of your right platform below:
Open this link to download, once it is finished:
VSCode-darwin-universal.zip
file.Downloads
to Applications
. (Located to your left under Favorites
)Command Palette
by Cmd + Shift + P
.shell command
.code
command in PATH.code --version
to confirm successful installation.Open this link to download and run it:
On Select Additional Tasks:
Note
You need to have a UBC IP address in order to access to the server by connecting to UBC WIFI or VPN1
Login to sockeye with the ssh
command:
cwl
is your campus wide login.
password is your same CWL password.
sockeye.arc.ubc.ca
is the server address.
you also need Two-Factor Authentication 2FA.
ssh
key pair credentials in your local.~/.ssh/config
in your local.ssh <new_alias>
Caution
Keep the private key safe and for your use only
Use any editor to create ~/.ssh/config
and enter the following:
Add your public key to the server
login
node and spend most time herebatch
jobs to serverPBS
, changing to SLURM
1 soonTip
We also have a recorded session from past months, if you’re interested please contact Amrit
Tip
Remember that read/write
access matters! You clearly don’t want to spend hours fitting models, but failed to write any results, cause you forgot to specify it to be the scratch directory.
Using direct text editors like nano or vi/vim could be hard (steep learning curve)
So, use VSCode instead!
Open local terminal and prompt code
Press Ctrl + Shift + X
Type Remote - SSH
in search bar
Open first option and click install
ssh
:container
or conda
Useful commands
module load bin1/x.y.z bin2/x.y.z # load two modules and their versions
module purge # unload all modules
module list # what you have loaded
module save name_col # save loaded modules to "<name_col>"
module savelist # list saved collections (<name col> this case)
module restore name_col # load saved collection
module avail # show all available modules
module spider mod_name # check available `<mod_name>` in sockeye
Note
There are no internet access during any of the jobs below:
ngpus
st-alloc-gpu
#!/bin/bash
#PBS -l walltime=3:00:00,select=1:ncpus=4:mem=16gb
#PBS -I
#PBS -q interactive_cpu
#PBS -N sample_job
#PBS -A st-singha53-1
# Note here should be empty, since you will get back a bash shell
# with the requested resources in the script.
# And this ones are recommended to use,
# when you have simple experiments to conduct without GPU
#PBS -I
and #PBS -q interactive_cpu
are required to make a job interactive with CPU#!/bin/bash
#PBS -l walltime=3:00:00,select=1:ncpus=4:ngpus=1:mem=16gb
#PBS -I
#PBS -q interactive_gpu
#PBS -N sample_job
#PBS -A st-singha53-1
# Note here should be empty, since you will get back a bash shell
# with the requested resources in the script.
# And this ones are recommended to use, when you have simple experiments
# to conduct that uses GPU.
interactive job with cpu
but with GPU supportst-alloc-gpu
pbs
script is saved as job_script.sh
Important
~/scratch/
only.ssh
Tip
We are building our lab handbook with known FAQs for debugging on Sockeye, check out here
Thanks!