-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.sh
21 lines (16 loc) · 1.59 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
#SBATCH --nodes=1
#BATCH --ntasks-per-node=1
if [ "$#" -ne 3 ]; then
echo "Usage: $0 <executable> <number of nodes> <number of processes per node>" >&2
exit 1
fi
export DAPL_DBG_TYPE=0
DATAPATH=/storage/readonly/stencil_data
#salloc -N $2 --exclusive -w kunpeng-node101 mpirun $1 7 256 256 256 16 ${DATAPATH}/stencil_data_256x256x256 ${DATAPATH}/stencil_answer_7_256x256x256_16steps
salloc -N $2 --exclusive -w kunpeng-node101 --ntasks-per-node $3 --ntasks-per-socket 32 mpirun $1 7 256 256 256 16 ${DATAPATH}/stencil_data_256x256x256 ${DATAPATH}/stencil_answer_7_256x256x256_16steps
salloc -N $2 --exclusive -w kunpeng-node101 --ntasks-per-node $3 --ntasks-per-socket 32 mpirun $1 7 384 384 384 16 ${DATAPATH}/stencil_data_384x384x384 ${DATAPATH}/stencil_answer_7_384x384x384_16steps
salloc -N $2 --exclusive -w kunpeng-node101 --ntasks-per-node $3 --ntasks-per-socket 32 mpirun $1 7 512 512 512 16 ${DATAPATH}/stencil_data_512x512x512 ${DATAPATH}/stencil_answer_7_512x512x512_16steps
salloc -N $2 --exclusive -w kunpeng-node101 --ntasks-per-node $3 --ntasks-per-socket 32 mpirun $1 27 256 256 256 16 ${DATAPATH}/stencil_data_256x256x256 ${DATAPATH}/stencil_answer_27_256x256x256_16steps
salloc -N $2 --exclusive -w kunpeng-node101 --ntasks-per-node $3 --ntasks-per-socket 32 mpirun $1 27 384 384 384 16 ${DATAPATH}/stencil_data_384x384x384 ${DATAPATH}/stencil_answer_27_384x384x384_16steps
salloc -N $2 --exclusive -w kunpeng-node101 --ntasks-per-node $3 --ntasks-per-socket 32 mpirun $1 27 512 512 512 16 ${DATAPATH}/stencil_data_512x512x512 ${DATAPATH}/stencil_answer_27_512x512x512_16steps