Skip to content

Instantly share code, notes, and snippets.

@iamgroot42
Created February 3, 2022 18:13
Show Gist options
  • Save iamgroot42/2a29141b5cb241aa82aa80809b420437 to your computer and use it in GitHub Desktop.
Save iamgroot42/2a29141b5cb241aa82aa80809b420437 to your computer and use it in GitHub Desktop.
Example SLURM script for blogpost
#!/bin/bash
#SBATCH --ntasks=1
#SBATCH -A uvasrg
# Total memory requested on system
# Maximum 4 nodes per job allowed
# Maximum 32GB/core allowed
#SBATCH --mem=32G
# Partition of machine
#SBATCH -p gpu
# Which GPU (and how many) to request
# Prefer V100 over 2080
#SBATCH --gres=gpu:rtx2080:1
# Request specific number of CPUs for the task
# Maximum 10 cores per job allowed
#SBATCH --cpus-per-task=10
# Time limit (go for max allowed: 3 days for GPU)
#SBATCH --time=3-00:00:00
# Output file paths
#SBATCH --output=logs/%x-%j.out
#SBATCH --error=logs/%x-%j.err
# Your command goes here
echo "Parameters were $PARAM1 and $PARAM2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment