πŸ˜€How to use HPC from department of Computer Science

Follow this tutorial to learn how to use HPC from depart of Computer Science

  • Log in VPN to access the network of department of computer science.

follow this Guide

https://systems.cs.odu.edu/images/6/6b/VPN.pdfarrow-up-right

  • Use your cs account to log in by ssh

when you use ssh remote you need to install the extension ssh remote on the extension market

  • when you want to run your code you need to set this kind of script

// Some code
#!/bin/bash -l
#SBATCH --job-name=frommaolei # job name
#SBATCH --account=slurmgeneral # only applicable if user is assigned multiple accounts
#SBATCH --ntasks=1 # commands to run in parallel
#SBATCH --output=frommaolei.log # output and error log
#SBATCH --error=frommaolei.err
#SBATCH --gres=gpu:1
#SBATCH --mem=64gb # request 1gb of memory
#SBATCH --nodelist=slurm-p100-collab
#SBATCH --mail-type=END,FAIL
#SBATCH --mail-user=chu034@odu.edu

hostname

python3 test.py

These are the explanations for this command

Resource

Syntax

Example

Description

Account

--account=<account>

--account=slurmgeneral

entity which resources are charged to. available accountsarrow-up-right

Partition

--partition=<partition>

--partition=slurm-general-01

where job resources are allocated. available partitionsarrow-up-right

Job Name

--job-name=<filename>

--job-name=testprogram

name of job to be queued

Task

--ntask=<number>

--ntask=2

useful for commands to be ran in parallel

Memory

--mem=<size>[units]

--mem=1gb

memory to be allocated for job

CPU

--cpus-per-task=<number>

--cpus-per-task=16

CPUs to be allocated per job task

Output

--output=<filename>

--output=testprogram.log

name of job output file

Time

--time=

--time=01:00:00

time limit for job

Last updated