starpu_chebyshev.sh 1.67 KB
Newer Older
1 2
#!/usr/bin/env bash
## name of job
3 4
#SBATCH -J starpu_50M
#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 12 13
#SBATCH -e starpu_50M_%j.err
#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
Martin Khannouz's avatar
Martin Khannouz committed
17
export GROUP_SIZE=2000
18 19 20 21
export TREE_HEIGHT=8
export NB_NODE=$SLURM_JOB_NUM_NODES
export STARPU_NCPU=24
export NB_PARTICLE_PER_NODE=50000000
22 23
export STARPU_FXT_PREFIX=$SLURM_JOB_ID
export FINAL_DIR="`pwd`/dir_$SLURM_JOB_ID"
Martin Khannouz's avatar
Martin Khannouz committed
24 25
export STARPU_WATCHDOG_TIMEOUT=20000000
export STARPU_WATCHDOG_CRASH=1
26
mkdir $FINAL_DIR
Martin Khannouz's avatar
Martin Khannouz committed
27
NUMACTL="numactl --interleave=all"
28 29 30 31 32 33 34 35 36 37 38

## Write data into an stdout file
echo "my jobID: " $SLURM_JOB_ID > $FINAL_DIR/stdout
echo "Model: cube" >> $FINAL_DIR/stdout
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
echo "Particle per node: " $NB_PARTICLE_PER_NODE >> $FINAL_DIR/stdout
echo "Total particles: " $(($NB_PARTICLE_PER_NODE*$NB_NODE)) >> $FINAL_DIR/stdout
39
$NUMACTL ./Build/Tests/Release/testBlockedChebyshev -nb $NB_PARTICLE_PER_NODE -bs $GROUP_SIZE -h $TREE_HEIGHT -no-validation >> $FINAL_DIR/stdout
40 41 42 43 44 45 46 47 48 49 50 51 52 53

##Create argument list for starpu_fxt_tool
cd $FINAL_DIR
list_fxt_file=`ls ../$STARPU_FXT_PREFIX*`

#Clean to only keep trace.rec
mkdir fxt
for i in $list_fxt_file; do
	mv $i fxt
done
cd ..

##Move the result into a directory where all result goes
mv $FINAL_DIR jobs_result