Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
677ab5d
Fixing removal of directory...
wood-chris Jul 14, 2021
726791e
MPICH
wood-chris Aug 9, 2021
bc8dde9
Merge branch 'NOC-MSM:main' into main
wood-chris Sep 8, 2021
ec10f6b
Merge branch 'NOC-MSM:main' into main
wood-chris Sep 9, 2021
9833235
apt update needs to be earlier than any apt install
wood-chris Sep 8, 2021
4391819
No longer using crudini
wood-chris Sep 8, 2021
14ec954
apt update needs to be earlier than any apt install
wood-chris Sep 8, 2021
4c21f4c
No longer using crudini
wood-chris Sep 8, 2021
18fa1e8
Minor typos
wood-chris Sep 9, 2021
05966d1
Merge branch 'NOC-MSM:main' into main
wood-chris Oct 21, 2021
e662d11
Adding ARCHER2-recommended build settings for MPICH
wood-chris Nov 9, 2021
a05e6f8
Fixing file permissions
wood-chris Nov 10, 2021
ee2f6e1
Fixing file permissions
wood-chris Nov 10, 2021
99d4715
adding runscripts
wood-chris Jan 11, 2022
b0d7bba
Compiling mpi with a UCX built from source
wood-chris Apr 4, 2022
e7f49db
Adding ARCHER2-recommended build settings for MPICH
wood-chris Nov 9, 2021
9e5a0c9
merging dev into main
wood-chris Apr 4, 2022
ff96d3c
Merge branch 'issue10' into main
wood-chris Apr 4, 2022
877bb2f
Merge upstream/main into main
wood-chris Apr 4, 2022
9bd8a73
fixing apparent copy/paste error
wood-chris Apr 5, 2022
19ac8b2
Merging main into branch
wood-chris Apr 6, 2022
810c6e3
Reverting MPI namelist var to be null for correct github action to be…
wood-chris May 19, 2022
badf341
Moving apt update as suggested by James
wood-chris May 19, 2022
2bd0b3c
Merge branch 'main' into mpich_runscript
wood-chris May 19, 2022
ab8e2f4
Merge branch 'main' of github.com:wood-chris/CoNES into main
wood-chris May 19, 2022
5e95ebc
Initial commit of nemo on alpine
wood-chris Aug 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Singularity.nemo
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ From: nemo_baseOS.sif
input_files/arch/xios/arch-singularity.path /input_files/arch/xios/arch-singularity.path

%post



. /input_files/NEMO_in

WORK_DIR=/nemo >> $SINGULARITY_ENVIRONMENT
Expand Down
4 changes: 2 additions & 2 deletions input_files/NEMO_in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NEMO_VERSION=4.0.4 # Check that VERSION is 4.0.[2-6], 4.0_HEAD or tr
XIOS_REVISION= # Use default value if empty
NEMO_COMPONENTS='OCE' # Which NEMO components to build OCE/ICE/TOP etc
CPP_KEYS= # Any additional compiler keys to include?
MPI=MPICH # Which MPI implementation to use MPICH | OMPI
MPI= # Which MPI implementation to use MPICH | OMPI
# If empty and using GH actions, both will be built
COMM=UCX # Which communication framework to use UCX | OFI
COMM=UCX # Which communication framework to use UCX | OFI
# If empty and using GH actions, both will be built
3 changes: 3 additions & 0 deletions nemo_alpine.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bootstrap: library
From: alpine:3.9.2

169 changes: 169 additions & 0 deletions runscripts/rs_mpich_bind
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
#!/bin/bash
#SBATCH --job-name=1Xg_95N
#SBATCH --time=00:20:00
#SBATCH --account=ecseab13
#SBATCH --partition=standard
#SBATCH --qos=short
#SBATCH --reservation=shortqos

#SBATCH --partition=standard
#SBATCH --nodes=1
#SBATCH --ntasks=57
#SBATCH --ntasks-per-node=57
#SBATCH --ntasks-per-core=1

#SBATCH hetjob
#SBATCH --partition=standard
#SBATCH --nodes=1
#SBATCH --ntasks=39
#SBATCH --ntasks-per-node=39
#SBATCH --ntasks-per-core=1

#module load cpe/21.03
#module load cray-hdf5-parallel
#module load cray-netcdf-hdf5parallel
#export LD_LIBRARY_PATH=/work/ecseab13/shared/install/lib:${LD_LIBRARY_PATH}
#export LD_LIBRARY_PATH=/opt/cray/pe/libsci/20.10.1.2/GNU/9.1/x86_64/lib:${LD_LIBRARY_PATH}

#module -s restore /work/n01/shared/acc/n01_modules/ucx_env

export OMP_NUM_THREADS=1
#export MPI_DIR=/opt/cray/pe/mpich/8.1.3/ofi/gnu/9.1/lib-abi-mpich
# Set the LD_LIBRARY_PATH environment variable within the Singularity container
# to ensure that it used the correct MPI libraries
#export SINGULARITYENV_LD_LIBRARY_PATH=/usr/lib:/lib/x86_64-linux-gnu:/opt/hdf5/install/lib:/opt/cray/pe/mpich/8.1.3/ofi/gnu/9.1/lib-abi-mpich:/opt/cray/pe/pmi/6.0.7/lib:/opt/cray/libfabric/1.11.0.0.233/lib64:/usr/lib64/host:

export SINGULARITYENV_PREPEND_PATH=/usr/bin/host

#export SINGULARITYENV_LD_LIBRARY_PATH=\
#/opt/hdf5/install/lib:\
#/opt/cray/pe/mpich/8.1.3/ofi/gnu/9.1/lib-abi-mpich:\
#/usr/lib/x86_64-linux-gnu/libibverbs:\
#/opt/cray/pe/pmi/6.0.7/lib:\
#/opt/cray/libfabric/1.11.0.0.233/lib64

#SINGULARITYENV_LD_LIBRARY_PATH=\
#/opt/hdf5/install/lib:\
#/opt/cray/pe/mpich/8.1.3/ofi/gnu/9.1/lib-abi-mpich:\
#/usr/lib/x86_64-linux-gnu/libibverbs:\
#/opt/cray/pe/pmi/6.0.7/lib:\
#/opt/cray/libfabric/1.11.0.0.233/lib64:\
#/usr/lib64/host:\
#/lib/x86_64-linux-gnu:\
#/.singularity.d/libs

SINGULARITYENV_LD_LIBRARY_PATH=\
/opt/cray/pe/hdf5-parallel/1.12.0.2/crayclang/9.1/lib:\
/opt/cray/pe/mpich/8.1.3/ucx/cray/9.1/lib-abi-mpich:\
/opt/cray/pe/pmi/6.0.7/lib:\
/opt/cray/libfabric/1.11.0.0.233/lib64:\
/usr/lib64/host:\

#export SINGULARITYENV_LD_LIBRARY_PATH=\
#/opt/libs:\
#/usr/lib:\
#/opt/mpi/install/lib:\
#/lib/x86_64-linux-gnu:\
#/opt/hdf5/install/lib:\
#/opt/cray/pe/mpich/8.1.3/ofi/gnu/9.1/lib-abi-mpich:\
#/opt/cray/pe/pmi/6.0.7/lib:\
#/opt/cray/libfabric/1.11.0.0.233/lib64:\
#/lib/x86_64-linux-gnu:\
#/usr/lib64/host

#export SINGULARITYENV_LD_LIBRARY_PATH=/opt/libs:/usr/lib:/opt/mpi/install/lib:/lib/x86_64-linux-gnu:/opt/hdf5/install/lib:/lib/x86_64-linux-gnu:


# Set the options for the Singularity executable
# This makes sure the locations with Cray Slingshot interconnect libraries are available
#singopts="-B /etc/libibverbs.d,/opt/cray,/usr/lib64:/usr/lib64/host,/usr/lib64/tcl,/var/spool/slurmd/mpi_cray_shasta"
singopts="-B /etc/libibverbs.d,/opt/cray,/usr/lib64:/usr/lib64/host,/usr/lib64/tcl,/var/spool/slurmd/mpi_cray_shasta"

#singopts="-B /etc/libibverbs.d,/opt/cray,/usr/lib64:/usr/lib64/host,/usr/lib64/tcl"


# Set the LD_LIBRARY_PATH environment variable within the Singularity container
# to ensure that it used the correct MPI libraries
#singopts="-B /opt/cray,/usr/lib64:/usr/lib64/host,/usr/lib64/tcl,/var/spool/slurmd/mpi_cray_shasta"

#===============================================================
# LAUNCH JOB
#===============================================================
# 5x6 25 61x65
# 7x8 47 45x49
# 11x11 95 29x36
# 14x16 184 22x26
# 22x23 370 16x19
#===============================================================
echo `date` : Launch Job
numactl --hardware

sed "s/XXX_JPNI_XXX/11/g" EXP00/namelist_cfg_template > tmp_out
sed "s/XXX_JPNJ_XXX/11/g" tmp_out > EXP00/namelist_cfg

#rm nemo.sif
#ln -s nemo-mpich-O0.sif nemo.sif

cat > myscript_wrapper.sh << EOFB
#!/bin/ksh
#
#set -A map '--mca orte_base_help_aggregate 0 singularity run /work/ecseab13/ecseab13/jhcones/testing/sing3/nemo.sif xios EXP00' '--mca orte_base_help_aggregate 0 singularity run -B /etc/libibverbs.d /work/ecseab13/ecseab13/jhcones/testing/sing3/nemo.sif nemo EXP00'
map[0]='singularity run /work/ecseab13/ecseab13/ccwcones/sing3/nemo.sif xios EXP00'
map[1]='singularity run /work/ecseab13/ecseab13/ccwcones/sing3/nemo.sif nemo EXP00'

exec_map=( 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 )
#
echo \${map[\${exec_map[\$SLURM_PROCID]}]}
exec \${map[\${exec_map[\$SLURM_PROCID]}]}
##
EOFB
chmod u+x ./myscript_wrapper.sh

rm EXP00/file_def_nemo-oce.xml
cd EXP00
ln -s file_def_nemo-oce-M.xml file_def_nemo-oce.xml
cd ../

srun hostname -s > hostfile
#./build_rankfile -S 1 -s 16 -m 1 -C 6 -c 1 -H 1 -v > rankfile
./build_rankfile -S 1 -s 16 -m 1 -C 95 -c 15 -H 1 -v > rankfile

#export LD_LIBRARY_PATH=$MPI_DIR:/opt/hdf5/install/lib:/.singularity.d/libs:$LD_LIBRARY_PATH
#export SINGULARITYENV_LD_LIBRARY_PATH=$LD_LIBRARY_PATH

#singularity exec --cleanenv nemo.sif env

echo '******************************'
#singularity exec nemo.sif env

srun --mpi=pmi2 --hint=nomultithread --mem-bind=local \
--pack-group=0 --cpu-bind=v,mask_cpu:0x1,0x10000,0x40000,0x100000,0x400000,0x1000000,0x4000000,0x10000000,0x40000000,0x100000000,0x400000000,0x1000000000,0x4000000000,0x10000000000,0x40000000000,0x100000000000,0x400000000000,0x1000000000000,0x4000000000000,0x10000000000000,0x40000000000000,0x100000000000000,0x400000000000000,0x1000000000000000,0x4000000000000000,0x10000000000000000,0x40000000000000000,0x100000000000000000,0x400000000000000000,0x1000000000000000000,0x4000000000000000000,0x10000000000000000000,0x40000000000000000000,0x100000000000000000000,0x400000000000000000000,0x1000000000000000000000,0x4000000000000000000000,0x10000000000000000000000,0x40000000000000000000000,0x100000000000000000000000,0x400000000000000000000000,0x1000000000000000000000000,0x4000000000000000000000000,0x10000000000000000000000000,0x40000000000000000000000000,0x100000000000000000000000000,0x400000000000000000000000000,0x1000000000000000000000000000,0x4000000000000000000000000000,0x10000000000000000000000000000,0x40000000000000000000000000000,0x100000000000000000000000000000,0x400000000000000000000000000000,0x1000000000000000000000000000000,0x4000000000000000000000000000000,0x10000000000000000000000000000000,0x40000000000000000000000000000000 ./myscript_wrapper.sh \
: --pack-group=1 --cpu-bind=v,mask_cpu:0x1,0x4,0x10,0x40,0x100,0x400,0x1000,0x4000,0x10000,0x40000,0x100000,0x400000,0x1000000,0x4000000,0x10000000,0x40000000,0x100000000,0x400000000,0x1000000000,0x4000000000,0x10000000000,0x40000000000,0x100000000000,0x400000000000,0x1000000000000,0x4000000000000,0x10000000000000,0x40000000000000,0x100000000000000,0x400000000000000,0x1000000000000000,0x4000000000000000,0x10000000000000000,0x40000000000000000,0x100000000000000000,0x400000000000000000,0x1000000000000000000,0x4000000000000000000,0x10000000000000000000 ./myscript_wrapper.sh


#mpirun --oversubscribe -rf rankfile --report-bindings -v -np 1 --bind-to core singularity run /work/ecseab13/ecseab13/jhcones/testing/sing/nemo.sif xios EXP00 : -np 95 --bind-to core --mca btl_vader_single_copy_mechanism none --mca btl ^sm --mca btl_openib_allow_ib true --bind-to core singularity run /work/ecseab13/ecseab13/jhcones/testing/sing/nemo.sif nemo EXP00


# Tidy up

#if [ ! -d TIMINGS ]; then
# mkdir TIMINGS
#fi
#mv EXP00/timing.output TIMINGS/timing.output.$SLURM_JOB_NAME
#mv EXP00/ocean.output meta_out/ocean.output.$SLURM_JOB_NAME
#if [ ! -d meta_out/"$SLURM_JOB_NAME" ]; then
# mkdir meta_out/$SLURM_JOB_NAME
#fi
#mv EXP00/slurm-* meta_out/$SLURM_JOB_NAME
#if [ ! -d RESTARTS/"$SLURM_JOB_NAME" ]; then
# mkdir RESTARTS/$SLURM_JOB_NAME
#fi
#mv EXP00/*restart* RESTARTS/$SLURM_JOB_NAME
#if [ ! -d OUTPUTS/"$SLURM_JOB_NAME" ]; then
# mkdir OUTPUTS/$SLURM_JOB_NAME
#fi
#mv EXP00/*_grid_* OUTPUTS/$SLURM_JOB_NAME

# Daisy-chain?

#sbatch runscript_2Xg_184N.slurm
169 changes: 169 additions & 0 deletions runscripts/rs_mpich_bind_clean
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
#!/bin/bash
#SBATCH --job-name=1Xg_95N
#SBATCH --time=00:20:00
#SBATCH --account=ecseab13
#SBATCH --partition=standard
#SBATCH --qos=short
#SBATCH --reservation=shortqos

#SBATCH --partition=standard
#SBATCH --nodes=1
#SBATCH --ntasks=57
#SBATCH --ntasks-per-node=57
#SBATCH --ntasks-per-core=1

#SBATCH hetjob
#SBATCH --partition=standard
#SBATCH --nodes=1
#SBATCH --ntasks=39
#SBATCH --ntasks-per-node=39
#SBATCH --ntasks-per-core=1

#module load cpe/21.03
#module load cray-hdf5-parallel
#module load cray-netcdf-hdf5parallel
#export LD_LIBRARY_PATH=/work/ecseab13/shared/install/lib:${LD_LIBRARY_PATH}
#export LD_LIBRARY_PATH=/opt/cray/pe/libsci/20.10.1.2/GNU/9.1/x86_64/lib:${LD_LIBRARY_PATH}

#module -s restore /work/n01/shared/acc/n01_modules/ucx_env

export OMP_NUM_THREADS=1
#export MPI_DIR=/opt/cray/pe/mpich/8.1.3/ofi/gnu/9.1/lib-abi-mpich
# Set the LD_LIBRARY_PATH environment variable within the Singularity container
# to ensure that it used the correct MPI libraries
export SINGULARITYENV_LD_LIBRARY_PATH=/usr/lib:/lib/x86_64-linux-gnu:/opt/hdf5/install/lib:/opt/cray/pe/mpich/8.1.3/ofi/gnu/9.1/lib-abi-mpich:/opt/cray/pe/pmi/6.0.7/lib:/opt/cray/libfabric/1.11.0.0.233/lib64:/usr/lib64/host:

export SINGULARITYENV_PREPEND_PATH=/usr/bin/host

#export SINGULARITYENV_LD_LIBRARY_PATH=\
#/opt/hdf5/install/lib:\
#/opt/cray/pe/mpich/8.1.3/ofi/gnu/9.1/lib-abi-mpich:\
#/usr/lib/x86_64-linux-gnu/libibverbs:\
#/opt/cray/pe/pmi/6.0.7/lib:\
#/opt/cray/libfabric/1.11.0.0.233/lib64

#SINGULARITYENV_LD_LIBRARY_PATH=\
#/opt/hdf5/install/lib:\
#/opt/cray/pe/mpich/8.1.3/ofi/gnu/9.1/lib-abi-mpich:\
#/usr/lib/x86_64-linux-gnu/libibverbs:\
#/opt/cray/pe/pmi/6.0.7/lib:\
#/opt/cray/libfabric/1.11.0.0.233/lib64:\
#/usr/lib64/host:\
#/lib/x86_64-linux-gnu:\
#/.singularity.d/libs

SINGULARITYENV_LD_LIBRARY_PATH=\
/opt/cray/pe/hdf5-parallel/1.12.0.2/crayclang/9.1/lib:\
/opt/cray/pe/mpich/8.1.3/ucx/cray/9.1/lib-abi-mpich:\
/opt/cray/pe/pmi/6.0.7/lib:\
/opt/cray/libfabric/1.11.0.0.233/lib64:\
/usr/lib64/host:\

#export SINGULARITYENV_LD_LIBRARY_PATH=\
#/opt/libs:\
#/usr/lib:\
#/opt/mpi/install/lib:\
#/lib/x86_64-linux-gnu:\
#/opt/hdf5/install/lib:\
#/opt/cray/pe/mpich/8.1.3/ofi/gnu/9.1/lib-abi-mpich:\
#/opt/cray/pe/pmi/6.0.7/lib:\
#/opt/cray/libfabric/1.11.0.0.233/lib64:\
#/lib/x86_64-linux-gnu:\
#/usr/lib64/host

#export SINGULARITYENV_LD_LIBRARY_PATH=/opt/libs:/usr/lib:/opt/mpi/install/lib:/lib/x86_64-linux-gnu:/opt/hdf5/install/lib:/lib/x86_64-linux-gnu:


# Set the options for the Singularity executable
# This makes sure the locations with Cray Slingshot interconnect libraries are available
#singopts="-B /etc/libibverbs.d,/opt/cray,/usr/lib64:/usr/lib64/host,/usr/lib64/tcl,/var/spool/slurmd/mpi_cray_shasta"
singopts="-B /etc/libibverbs.d,/opt/cray,/usr/lib64:/usr/lib64/host,/usr/lib64/tcl,/var/spool/slurmd/mpi_cray_shasta"

#singopts="-B /etc/libibverbs.d,/opt/cray,/usr/lib64:/usr/lib64/host,/usr/lib64/tcl"


# Set the LD_LIBRARY_PATH environment variable within the Singularity container
# to ensure that it used the correct MPI libraries
#singopts="-B /opt/cray,/usr/lib64:/usr/lib64/host,/usr/lib64/tcl,/var/spool/slurmd/mpi_cray_shasta"

#===============================================================
# LAUNCH JOB
#===============================================================
# 5x6 25 61x65
# 7x8 47 45x49
# 11x11 95 29x36
# 14x16 184 22x26
# 22x23 370 16x19
#===============================================================
echo `date` : Launch Job
numactl --hardware

sed "s/XXX_JPNI_XXX/11/g" EXP00/namelist_cfg_template > tmp_out
sed "s/XXX_JPNJ_XXX/11/g" tmp_out > EXP00/namelist_cfg

#rm nemo.sif
#ln -s nemo-mpich-O0.sif nemo.sif

cat > myscript_wrapper.sh << EOFB
#!/bin/ksh
#
#set -A map '--mca orte_base_help_aggregate 0 singularity run /work/ecseab13/ecseab13/jhcones/testing/sing3/nemo.sif xios EXP00' '--mca orte_base_help_aggregate 0 singularity run -B /etc/libibverbs.d /work/ecseab13/ecseab13/jhcones/testing/sing3/nemo.sif nemo EXP00'
map[0]='singularity run /work/ecseab13/ecseab13/ccwcones/sing3/nemo.sif xios EXP00'
map[1]='singularity run /work/ecseab13/ecseab13/ccwcones/sing3/nemo.sif nemo EXP00'

exec_map=( 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 )
#
echo \${map[\${exec_map[\$SLURM_PROCID]}]}
exec \${map[\${exec_map[\$SLURM_PROCID]}]}
##
EOFB
chmod u+x ./myscript_wrapper.sh

rm EXP00/file_def_nemo-oce.xml
cd EXP00
ln -s file_def_nemo-oce-M.xml file_def_nemo-oce.xml
cd ../

srun hostname -s > hostfile
#./build_rankfile -S 1 -s 16 -m 1 -C 6 -c 1 -H 1 -v > rankfile
./build_rankfile -S 1 -s 16 -m 1 -C 95 -c 15 -H 1 -v > rankfile

#export LD_LIBRARY_PATH=$MPI_DIR:/opt/hdf5/install/lib:/.singularity.d/libs:$LD_LIBRARY_PATH
#export SINGULARITYENV_LD_LIBRARY_PATH=$LD_LIBRARY_PATH

#singularity exec --cleanenv nemo.sif env

echo '******************************'
#singularity exec nemo.sif env

srun --mpi=pmi2 --hint=nomultithread --mem-bind=local \
--pack-group=0 --cpu-bind=v,mask_cpu:0x1,0x10000,0x40000,0x100000,0x400000,0x1000000,0x4000000,0x10000000,0x40000000,0x100000000,0x400000000,0x1000000000,0x4000000000,0x10000000000,0x40000000000,0x100000000000,0x400000000000,0x1000000000000,0x4000000000000,0x10000000000000,0x40000000000000,0x100000000000000,0x400000000000000,0x1000000000000000,0x4000000000000000,0x10000000000000000,0x40000000000000000,0x100000000000000000,0x400000000000000000,0x1000000000000000000,0x4000000000000000000,0x10000000000000000000,0x40000000000000000000,0x100000000000000000000,0x400000000000000000000,0x1000000000000000000000,0x4000000000000000000000,0x10000000000000000000000,0x40000000000000000000000,0x100000000000000000000000,0x400000000000000000000000,0x1000000000000000000000000,0x4000000000000000000000000,0x10000000000000000000000000,0x40000000000000000000000000,0x100000000000000000000000000,0x400000000000000000000000000,0x1000000000000000000000000000,0x4000000000000000000000000000,0x10000000000000000000000000000,0x40000000000000000000000000000,0x100000000000000000000000000000,0x400000000000000000000000000000,0x1000000000000000000000000000000,0x4000000000000000000000000000000,0x10000000000000000000000000000000,0x40000000000000000000000000000000 ./myscript_wrapper.sh \
: --pack-group=1 --cpu-bind=v,mask_cpu:0x1,0x4,0x10,0x40,0x100,0x400,0x1000,0x4000,0x10000,0x40000,0x100000,0x400000,0x1000000,0x4000000,0x10000000,0x40000000,0x100000000,0x400000000,0x1000000000,0x4000000000,0x10000000000,0x40000000000,0x100000000000,0x400000000000,0x1000000000000,0x4000000000000,0x10000000000000,0x40000000000000,0x100000000000000,0x400000000000000,0x1000000000000000,0x4000000000000000,0x10000000000000000,0x40000000000000000,0x100000000000000000,0x400000000000000000,0x1000000000000000000,0x4000000000000000000,0x10000000000000000000 ./myscript_wrapper.sh


#mpirun --oversubscribe -rf rankfile --report-bindings -v -np 1 --bind-to core singularity run /work/ecseab13/ecseab13/jhcones/testing/sing/nemo.sif xios EXP00 : -np 95 --bind-to core --mca btl_vader_single_copy_mechanism none --mca btl ^sm --mca btl_openib_allow_ib true --bind-to core singularity run /work/ecseab13/ecseab13/jhcones/testing/sing/nemo.sif nemo EXP00


# Tidy up

#if [ ! -d TIMINGS ]; then
# mkdir TIMINGS
#fi
#mv EXP00/timing.output TIMINGS/timing.output.$SLURM_JOB_NAME
#mv EXP00/ocean.output meta_out/ocean.output.$SLURM_JOB_NAME
#if [ ! -d meta_out/"$SLURM_JOB_NAME" ]; then
# mkdir meta_out/$SLURM_JOB_NAME
#fi
#mv EXP00/slurm-* meta_out/$SLURM_JOB_NAME
#if [ ! -d RESTARTS/"$SLURM_JOB_NAME" ]; then
# mkdir RESTARTS/$SLURM_JOB_NAME
#fi
#mv EXP00/*restart* RESTARTS/$SLURM_JOB_NAME
#if [ ! -d OUTPUTS/"$SLURM_JOB_NAME" ]; then
# mkdir OUTPUTS/$SLURM_JOB_NAME
#fi
#mv EXP00/*_grid_* OUTPUTS/$SLURM_JOB_NAME

# Daisy-chain?

#sbatch runscript_2Xg_184N.slurm
Loading