Connect to HPC and run the following commands.
module load Workspace
salloc --time=02:00:00 --mem-per-cpu=4G --partition=gpu-invest --gres=gpu:rtx3090:1
srun --pty bash
squeue --me
squeue
command gives you information on the node hosting the resources allocated with salloc
. Set up a remote connection to the node with VSCode.
In order to be able to connect to the desired node directly, you have to set up the SSH keys and SSH connection in your config file.
Resources:
- https://hpc-unibe-ch.github.io/getting-Started/ssh-customization.html
- https://stackoverflow.com/a/66389686/9948255
Host ubelix
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa_ubelix
HostName submit03.unibe.ch
User ds21n601
ServerAliveInterval 60
Host gnode*
HostName %h
ProxyJump ubelix
User ds21n601