Skip to content

Commit 53dfc1c

Browse files
committed
Adding Gadi singularity test scripts
1 parent ed9b3e5 commit 53dfc1c

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

gadi_container_go.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash -l
2+
3+
# load Singularity
4+
module load singularity
5+
module load openmpi/4.1.4
6+
7+
8+
export singularityDir=/g/data/m18/software/underworld/
9+
10+
# Define the container to use
11+
export containerImage=$singularityDir/underworld-215.sif
12+
13+
env
14+
cat timed_model.py
15+
echo ""
16+
echo "---------- Running Job ----------"
17+
echo ""
18+
export TIME_LAUNCH_MPI=`date +%s%N | cut -b1-13`
19+
mpiexec -n $PBS_NCPUS singularity exec $containerImage bash -c "TIME_LAUNCH_PYTHON=\`date +%s%N | cut -b1-13\` python3 timed_model.py"

params.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/bin/bash
2-
#export JOBS="1 2"
2+
export JOBS="1 2 4 6 8"
33
#export JOBS="1 2 4 6 8 10 12 14 16 18 20 22"
4-
export JOBS="22 22"
5-
export UW_NAME="2.14.2_WeakScaling"
4+
#export JOBS="22 22"
5+
export UW_NAME="2.15.0_WeakScaling"
66
export SCALING_TYPE=1 # 1=weak, 2=strong
77

88
export UW_MODEL="SolDB3d" # "SolDB3d" for dim3, though penalty method probably needed for q1.
99
export PICKLENAME=None #"SolDB3d_Gadi_1e-11.pickle" #"conv_test_results_high_res_tighter_take2.pickle" # set to "None" to disable conv testing
1010
export UW_ENABLE_IO="0"
1111

12-
export WALLTIME="00:25:00"
13-
export ACCOUNT="pawsey0407"
12+
export WALLTIME="00:10:00"
13+
export ACCOUNT="m18"
1414
export QUEUE="normal" # normal or express
1515

1616
export UW_ORDER=1

scaling_test_job_launcher.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ do
4343
export NTASKS="$((${i}*${i}*${i}))"
4444
export EXPORTVARS="UW_RESOLUTION,NTASKS,UW_ENABLE_IO,UW_ORDER,UW_DIM,UW_SOL_TOLERANCE,UW_MAX_ITS,UW_PENALTY,UW_MODEL,PICKLENAME"
4545
if [ $BATCH_SYS == "PBS" ] ; then
46-
# memory requirement guess: 3GB * nprocs
47-
MEMORY="$((4*${NTASKS}))GB"
4846
PBSTASKS=`python3 <<<"print((int(${NTASKS}/48) + (${NTASKS} % 48 > 0))*48)"` # round up to nearest 48 as required by nci
49-
CMD="qsub -v ${EXPORTVARS} -N ${NAME} -l storage=gdata/m18,ncpus=${PBSTASKS},mem=${MEMORY},walltime=${WALLTIME},wd -P ${ACCOUNT} -q ${QUEUE} gadi_baremetal_go.sh"
47+
# memory requirement guess: 3GB * nprocs
48+
MEMORY="$((3*${PBSTASKS}))GB"
49+
CMD="qsub -v ${EXPORTVARS} -N ${NAME} -l storage=gdata/m18+gdata/q97,ncpus=${PBSTASKS},mem=${MEMORY},walltime=${WALLTIME},wd -P ${ACCOUNT} -q ${QUEUE} gadi_container_go.sh"
5050
echo ${CMD}
5151
${CMD}
5252
else

0 commit comments

Comments
 (0)