-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSubmit_frontera.sh
29 lines (22 loc) · 1.18 KB
/
Submit_frontera.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash -
#SBATCH -o .bfi_restart/%x.log # Output file name. x=SLURM_JOB_NAME
#SBATCH -e .bfi_restart/%x.log # Error file name
#SBATCH -n 1 # Number of cores
#SBATCH --ntasks-per-node 1 # number of MPI ranks per node
#SBATCH -N 1 # number of nodes
#SBATCH -p small # Queue name
#SBATCH -A PHY20018 # Account name
#SBATCH -t 1:0:00 # Run time
#SBATCH --no-requeue
#SBATCH --begin now+2days # Stay in pending for 2 days
umask 0022
# See README.md for usage.
# The first time you run this, BFI_HOME and BFI_USER should be set. In the
# resubmissions below, it will get passed.
export PATH=$PATH:$BFI_HOME/Scripts/bin:$BFI_HOME/SpEC/Support/bin
# BFI project. Edit Job name in command line args if you want to edit this.
ProjectNumberOrName=$SLURM_JOB_NAME
Machine="Frontera"
.bfi_restart/Restart.sh $ProjectNumberOrName $SLURM_JOB_NAME $SLURM_JOB_ID $EMAIL $Machine
# Resumbmit the job to slurm, but do it from a login node becasue Frontera
ssh login1.frontera.tacc.utexas.edu "sbatch -J $ProjectNumberOrName --export=ALL,EMAIL=$EMAIL,BFI_HOME=$BFI_HOME,BFI_USER=$BFI_USER .bfi_restart/Submit.sh"