Skip to content

Instantly share code, notes, and snippets.

@scandav
Created November 29, 2022 09:34
Show Gist options
  • Save scandav/c08e1433a111a2acdd11a6c5ed31d456 to your computer and use it in GitHub Desktop.
Save scandav/c08e1433a111a2acdd11a6c5ed31d456 to your computer and use it in GitHub Desktop.
HPC Remote Debugging Guide

How To

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.

SSH settings

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:

My SSH config file

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment