#!/usr/bin/env bash
# observatory-server slurm script example
# observatory-server available computation resources:
# CPUs=128 Boards=1 SocketsPerBoard=2 CoresPerSocket=32 ThreadsPerCore=2
# RealMemory=250000 (of 257577)
# slurm configuration
#SBATCH --job-name=my_job # Job name
#SBATCH --output=./my_output.txt # Standard output file
#SBATCH --error=./my_error.txt # Standard error file
#SBATCH --partition=localhost # Partition or queue name
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks-per-node=1 # Number of tasks per node
#SBATCH --cpus-per-task=64 # Number of CPU cores per task
#SBATCH --mem=128GB # Amount of memory
#SBATCH --time=00-01:00:00 # Maximum runtime (DD-HH:MM:SS)
#SBATCH --mail-type=BEGIN,END,FAIL,ALL # Send email events
#SBATCH --mail-user=my_username@wellesley.edu # Email address for notifications
# slurm environment
echo "Job ID: ${SLURM_JOB_ID}"
echo "Node name: ${SLURMD_NODENAME}"
# job start time
echo "Start time: "`date +"%D %T"`
# optionally load modules (unavailable)
# module load module_name
# optionally configure environment
# source /astro/config/setup
# optionally configure sub-environment
# j
# optionally debug environment
# env
# run job commands
# ./my_program.py
# job end time
echo "End time: "`date +"%D %T"`
#!/usr/bin/env bash
# observatory-workstation slurm script example
# observatory-workstation available computation resources:
# CPUs=4 Boards=1 SocketsPerBoard=1 CoresPerSocket=4 ThreadsPerCore=1
# RealMemory=8000 (of 15773)
# slurm configuration
#SBATCH --job-name=my_job # Job name
#SBATCH --output=./my_output.txt # Standard output file
#SBATCH --error=./my_error.txt # Standard error file
#SBATCH --partition=localhost # Partition or queue name
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks-per-node=1 # Number of tasks per node
#SBATCH --cpus-per-task=2 # Number of CPU cores per task
#SBATCH --mem=4GB # Amount of memory
#SBATCH --time=00-01:00:00 # Maximum runtime (DD-HH:MM:SS)
#SBATCH --mail-type=BEGIN,END,FAIL,ALL # Send email events
#SBATCH --mail-user=my_username@wellesley.edu # Email address for notifications
# slurm environment
echo "Job ID: ${SLURM_JOB_ID}"
echo "Node name: ${SLURMD_NODENAME}"
# job start time
echo "Start time: "`date +"%D %T"`
# optionally load modules (unavailable)
# module load module_name
# optionally configure environment
# source /astro/config/setup
# optionally configure sub-environment
# j
# optionally debug environment
# env
# run job commands
# ./my_program.py
# job end time
echo "End time: "`date +"%D %T"`