-
Notifications
You must be signed in to change notification settings - Fork 6
Job Batch
George Mihaila edited this page Oct 2, 2018
·
1 revision
#!/bin/bash
#SBATCH -p public
#SBATCH -J job_name
#SBATCH -o output_name.o%j
#SBATCH -e error_name.e%j
-
Defines the Quality of Service (QOS) the job will be executed. Options to use: (debug, general, large)
- debug - 2 hour and 2 node limit with high priority
- general - 72 hour and 560 CPU cores limit with default partition
- large - limit to 20 nodes, unlimited hours, allow exclusive jobs and low priority
#SBATCH --qos general
#SBATCH --exclusive
#SBATCH -t 80:00:00
#SBATCH -n 84
#SBATCH -N 3
#SBATCH --ntasks-per-node 28
-
Requests the c6320 compute nodes. (Also can request r420, r720, and r730 compute nodes). More Info
#SBATCH -C c6320
#SBATCH [email protected]
-
- job begins:
#SBATCH --mail-type=begin
- job finishes:
#SBATCH --mail-type=end
- or both:
#SBATCH --mail-type=ALL
-
module load python
- To see all modules available, type this in your terminal (NOT the job file):
module avail
- To see all loaded modules, type this in your terminal (NOT the job file):
module list
- Remove module, type this in your terminal (NOT the job file):
module list
- Remove all modules, type this in your terminal (NOT the job file):
module purge
cp /home/$USER/file_name /storage/scratch2/euid123/file_name
cd /storage/scratch2/euid123/
python file_name
cp /storage/scratch2/euid123/file_name /home/$USER/file_name
#SBATCH -J my_example_job
#SBATCH -o ./out/example_job.o%j
#SBATCH -e my_example_job.e%j
#SBATCH -p public
#SBATCH --qos general
#SBATCH -N 1
#SBATCH -n 1
module load python
python test.py
$ sbatch job_template.job
$ squeue -u euid123
$ scontrol show job $JOB_ID
$ scancel $JOB_ID
$ scontrol hold $JOB_ID
$ scontrol release $JOB_ID