Quickstart
How to connect to Hydra and submit your first batch job.
Connecting to Hydra
The simplest way to connect to Hydra is through the ssh.cs.brown.edu gateway or the fastx cluster. You need to set up your ssh keypair in order to use the ssh gateway or fastx cluster.
Submit a compute job
You can submit a job using sbatch:
You can confirm that your compute job ran successfully by running:
By default, your job is submitted to the compute partition and will run for 1hr if you don't specify the partion name or run time limit.
Submit a gpu job
To submit a gpu job, you must use the gpus partition and request a gpu in your request. Use sbatch with the following options to submit a gpu job.
You can confirm that your compute job ran successfully by running:
The gpus partition contains all the gpu hardware down in the CIT datacenter. You must request at least 1 gpu resource in order to run a gpu job on the gpus partition.
Showing the job queue
To see the job queue, use the squeue command.
Cancel a job
To cancel your job, use the scancel command i. e. scancel <job id>.
Using slurm options in a script
The script you submit to slurm can contain slurm options in it. Here is a simple template, batch.script, to use for that:
# set the partition to run on the gpus partition. The Hydra cluster has the following partitions: compute, gpus, debug, tstaff
#SBATCH --partition=gpus
# request 1 gpu resource
#SBATCH --gres=gpu:1
Slurm Training
Slurm training is available the CCV slurm workshop. Go to the CCV Help page for details.