Skip to content

Commit

Permalink
Create job-template.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fbhuiyan2 authored Dec 14, 2024
1 parent d5f30d0 commit a20717e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions balsam/config/defaults/alcf_sophia/job-template.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
#PBS -l select={{ num_nodes }}:ncpus=1
#PBS -l walltime={{ wall_time_min//60 | int }}:{{ wall_time_min | int }}:00
#PBS -l filesystems=home:grand:eagle
#PBS -A {{ project }}
#PBS -q {{ queue }}

export http_proxy="http://proxy:3128"
export https_proxy="http://proxy:3128"

# Load required modules
module load compilers/openmpi/5.0.3

#remove export PMI_NO_FORK=1
export BALSAM_SITE_PATH={{balsam_site_path}}
cd $BALSAM_SITE_PATH

echo "Starting balsam launcher at $(date)"
{{launcher_cmd}} -j {{job_mode}} -t {{wall_time_min - 2}} \
{% for k, v in filter_tags.items() %} --tag {{k}}={{v}} {% endfor %} \
{{partitions}}
echo "Balsam launcher done at $(date)"

0 comments on commit a20717e

Please sign in to comment.