simple_mpi.sh 1.12 KB
Newer Older
1 2
#!/usr/bin/env bash
## name of job
Martin Khannouz's avatar
Martin Khannouz committed
3
#SBATCH -J simple-mpi
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#SBATCH -p special
## Resources: (nodes, procs, tasks, walltime, ... etc)
#SBATCH -c 24
#SBATCH --time=0-00:30:00
#SBATCH --exclusive
# # output error message
#SBATCH -e implicit_%j.err
#SBATCH --mail-type=END,FAIL,TIME_LIMIT --mail-user=martin.khannouz@inria.fr
## modules to load for the job
source $HOME/env.sh

## variable for the job
export TREE_HEIGHT=8
export NB_NODE=$SLURM_JOB_NUM_NODES
export FINAL_DIR="`pwd`/dir_$SLURM_JOB_ID"
19
export STARPU_FXT_PREFIX=$SLURM_JOB_ID
20 21 22
NUMACTL="numactl --interleave=all"
mkdir $FINAL_DIR
echo "my jobID: " $SLURM_JOB_ID > $FINAL_DIR/stdout
23
echo "Model: " $MODEL >> $FINAL_DIR/stdout
24
echo "Nb node: " $NB_NODE >> $FINAL_DIR/stdout
Martin Khannouz's avatar
Martin Khannouz committed
25
echo "Nb thread: 24" >> $FINAL_DIR/stdout
26 27 28 29
echo "Tree height: " $TREE_HEIGHT >> $FINAL_DIR/stdout
echo "Group size: 1" >> $FINAL_DIR/stdout
echo "Algorithm: simple-mpi" >> $FINAL_DIR/stdout
echo "Total particles: " $NB_PARTICLE >> $FINAL_DIR/stdout
30
mpiexec -n $NB_NODE $NUMACTL ./Build/Tests/Release/testFmmAlgorithmThreadProc -nb $NB_PARTICLE -h $TREE_HEIGHT -$MODEL >> $FINAL_DIR/stdout 2>&1
31 32

source $HOME/move_trace.sh