Skip to content

Commit fe08b35

Browse files
authored
Merge pull request QMCPACK#5571 from Kcorbyerd/develop
Add email support to Perlmutter Jobs through Nexus
2 parents 76b83bc + 1aa8852 commit fe08b35

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

nexus/lib/machines.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2475,6 +2475,10 @@ def write_job_header(self,job):
24752475
c+='#SBATCH -o '+job.outfile+'\n'
24762476
c+='#SBATCH -e '+job.errfile+'\n'
24772477

2478+
if job.email is not None:
2479+
c+='#SBATCH --mail-type=ALL\n'
2480+
c+='#SBATCH --mail-user={0}\n'.format(job.email)
2481+
24782482
if 'gpu' in job.constraint:
24792483
gpus_per_task = int(floor(float(self.gpus_per_node)/job.processes_per_node))
24802484
c+='#SBATCH --gpus-per-task={0}\n'.format(gpus_per_task)

0 commit comments

Comments
 (0)