Get Started with SciNet Mist
This is a tutorial for those who are new to Mist, a GPU cluster in the SciNet supercomputer center.
- Register a Compute Canada Database (CCDB) account
- there are multiple roles for an account, for student researcher to be added to a group, need a sponsor code
- it takes a few hour for the account to be activated by consortium
- Request access to Niagara and Mist on Compute Canada
- takes hours, will be notified by email
- Set up ssh public/private key:
- generate key via
ssh-keygen -t $TYPE -f $KEY_NAME
, where$TYPE
could be any of these preferred public key algorithm: rsa, dsa, ecdsa, ed25519 - copy public key (i.e the file with extension .pub) to Compute Canada’s webpage, select MyAccount -> Manage SSH Keys
- give the key a name, then click add key
- generate key via
- ssh to Mist
ssh -i $USERNAME -Y $USERNAME@mist.scinet.utoronto.ca
, where$USERNAME
is that of the CCDB account registered in step 1
- Load/Install software modules
- load anaconda:
module load anaconda3
- create a virtual environment:
conda create -n $ENV_NAME python=$PYTHON_VERSION
- install any requirements in IBM Open-CE Conda Channel:
- e.g. PyTorch, CUDAToolkit:
conda install -c /scinet/mist/ibm/open-ce pytorch=1.10.2 cudatoolkit=11.2
- e.g. PyTorch, CUDAToolkit:
- load anaconda:
- (Heads up) Large dataset like ImageNet can exhaust disk quota in personal directory under
/home($HOME)
, it should be downloaded and stored in personal directory under/scratch($SCRATCH)
- (Optional, but recommended) Request a debugjob via
debugjob --clean -g $NUM_GPUS
and test the code on a small scale experiment first. This command gives an interactive session equivalent to 1 full hour compute