Created
February 3, 2022 18:13
-
-
Save iamgroot42/2a29141b5cb241aa82aa80809b420437 to your computer and use it in GitHub Desktop.
Example SLURM script for blogpost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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