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

15 16 17 18 19 20
## variable for the job
export TREE_HEIGHT=8
export NB_NODE=$SLURM_JOB_NUM_NODES
export STARPU_NCPU=24
export STARPU_FXT_PREFIX=$SLURM_JOB_ID
export FINAL_DIR="`pwd`/dir_$SLURM_JOB_ID"
21
export STARPU_COMM_STATS=1
Martin Khannouz's avatar
Martin Khannouz committed
22 23
export STARPU_WATCHDOG_TIMEOUT=20000000
export STARPU_WATCHDOG_CRASH=1
Martin Khannouz's avatar
Martin Khannouz committed
24 25 26
export STARPU_GENERATE_TRACE=0
export STARPU_SILENT=1
export STARPU_MPI_COMM=1
Martin Khannouz's avatar
Martin Khannouz committed
27
NUMACTL="numactl --interleave=all"
28 29
mkdir $FINAL_DIR
echo "my jobID: " $SLURM_JOB_ID > $FINAL_DIR/stdout
30
echo "Model: " $MODEL >> $FINAL_DIR/stdout
31 32 33 34 35
echo "Nb node: " $NB_NODE >> $FINAL_DIR/stdout
echo "Nb thread: " $STARPU_NCPU >> $FINAL_DIR/stdout
echo "Tree height: " $TREE_HEIGHT >> $FINAL_DIR/stdout
echo "Group size: " $GROUP_SIZE >> $FINAL_DIR/stdout
echo "Algorithm: explicit" >> $FINAL_DIR/stdout
Martin Khannouz's avatar
Martin Khannouz committed
36
echo "Total particles: " $NB_PARTICLE >> $FINAL_DIR/stdout
37
mpiexec -n $NB_NODE $NUMACTL ./Build/Tests/Release/testBlockedMpiChebyshev -nb $NB_PARTICLE -bs $GROUP_SIZE -h $TREE_HEIGHT -$MODEL -no-validation >> $FINAL_DIR/stdout 2>&1
38

39
source $HOME/move_trace.sh