#! /bin/bash
#MSUB -r Test1              # Request name
#MSUB -n #NTASK#            # Number of Task
#MSUB -c #OMPTHREADS#           # Number of Threads per Task
#MSUB -N #NODES#            # Number of Nodes
#MSUB -T 1800               # Elapsed time limit in seconds
#MSUB -o bench_out_%I.o     # Standart output %I is the job ID
#MSUB -o bench_out_%I.e     # Error output %I is the job ID
#MSUB -q skylake            # see ccc_mpinfo:  skylake or
#MSUB -A pa4564             # Project ID
set -x
cd ${BRIDGE_MSUB_PWD}

export OMP_NUM_THREADS=#OMPTHREADS#
export BRIDGE_MSUB_NCORE=#CPUPTASK#  # number of requested cores per process

#module unload feature/openmpi/net/auto feature/openmpi/mpi_compiler/intel mpi/openmpi/2.0.4
#module unload mpi/openmpi/2.0.4
#module unload .tuning/openmpi/2.0.4
#module unload feature/openmpi/net/auto feature/openmpi/mpi_compiler/intel mpi/openmpi/2.0.4
#module load mpi/intelmpi/2018.0.3.222
#module load python3

echo "mpirun -n #NTASK# #EXE#"

ccc_mprun -n #NTASK# -N #NODES# #EXE# > #NAME#

