NEW USERS: Go to the basic-examples/ directory first! See https://help.accre.vanderbilt.edu/index.php?title=Overview for the most up to date information.
These examples use current ACCRE configuration and are recommended for all users:
- ✅ Current partitions (batch, batch_gpu, interactive, interactive_gpu)
- ✅ Proper
setup_accre_software_stackusage - ✅ Current GPU types and syntax
- ✅ Up-to-date module loading
Quick start:
cd basic-examples/
cat README.md
# Edit script to add your account name, then:
sbatch 01_basic_batch.slurm#SBATCH --account=your_account_name. Find your account with: sacctmgr show user $USER
The following directories contain verified, up-to-date examples:
- basic-examples/ (⭐ START HERE) - Comprehensive examples for new users
archived-examples/ contains severely outdated examples that need updating before use. These examples are missing setup_accre_software_stack and may use deprecated module names or partition names. See the archived-examples/README.md for details.
- slurm-commands.sh: contains lots of examples of SLURM commands and how to customize the output of each command
To submit any script:
sbatch SCRIPT_NAME.slurmMake sure to change the email if you want to submit these scripts.
- basic-examples/ (⭐ START HERE) - Up-to-date examples for new users with current ACCRE configuration. Includes:
- Basic batch (CPU) jobs
- GPU jobs with correct partition and gres syntax
- Job arrays
- Python example scripts
- Comprehensive README
- archived-examples/ - Contains examples that need updating before use (mpi-job, openmp-job, pthread-job, julia-job, epilog, job-array2, srun, memory-optimization). See archived-examples/README.md for details on what needs fixing.