starpu_chebyshev.sh 1.27 KB
Newer Older
1 2
#!/usr/bin/env bash
## name of job
3
#SBATCH -J starpu
4
#SBATCH -p defq
5 6 7
## Resources: (nodes, procs, tasks, walltime, ... etc)
#SBATCH -N 1
#SBATCH -c 24
8
#SBATCH --time=02:00:00
9
#SBATCH --exclusive
10
# # output error message
11
#SBATCH -e starpu_%j.err
12 13
#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
14 15
source $HOME/env.sh

16
##Setting variable for the job
17 18 19
export TREE_HEIGHT=8
export NB_NODE=$SLURM_JOB_NUM_NODES
export STARPU_NCPU=24
20 21
export STARPU_FXT_PREFIX=$SLURM_JOB_ID
export FINAL_DIR="`pwd`/dir_$SLURM_JOB_ID"
Martin Khannouz's avatar
Martin Khannouz committed
22 23
export STARPU_WATCHDOG_TIMEOUT=20000000
export STARPU_WATCHDOG_CRASH=1
24
mkdir $FINAL_DIR
Martin Khannouz's avatar
Martin Khannouz committed
25
NUMACTL="numactl --interleave=all"
26 27 28

## Write data into an stdout file
echo "my jobID: " $SLURM_JOB_ID > $FINAL_DIR/stdout
29
echo "Model: " $MODEL >> $FINAL_DIR/stdout
30 31 32 33 34
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: starpu" >> $FINAL_DIR/stdout
35
echo "Total particles: " $NB_PARTICLE >> $FINAL_DIR/stdout
36
$NUMACTL ./Build/Tests/Release/testBlockedChebyshev -nb $NB_PARTICLE -bs $GROUP_SIZE -h $TREE_HEIGHT -no-validation -$MODEL >> $FINAL_DIR/stdout
37

38
source $HOME/move_trace.sh