#!/bin/bash
#SBATCH --job-name=geo1438
#SBATCH -o Geo1438.out
#SBATCH -e Geo1438.err
#SBATCH --time=01:00:00
#SBATCH --exclusive
##SBATCH nombre de noeuds requis
#SBATCH -N 2
##SBATCH nombre de coeurs par noeud
#SBATCH --tasks-per-node 24
#SBATCH -p defq
## modules requis
module purge
module add slurm/14.03.0
module add compiler/gcc/4.8.4
module add mpi/openmpi/gcc/1.8.5-tm
module add hardware/hwloc/1.11.0
module add intel/mkl/64/11.2/2015.3.187
# module add compiler/cuda/6.5/nsight/6.5.14

# export PKG_CONFIG_PATH=/home/terraz/starpu-1.1/install/lib/pkgconfig:$PKG_CONFIG_PATH
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/terraz/starpu-1.1/install/lib
# export STARPU_SCHED=ws

## lancement executable
time mpirun -np 2 /home/terraz/ricar/src/example/bin/dsimple -mm /home/lacoste/matrices/Geo1438.mtx -t 23 -v 3 -iparm IPARM_THREAD_COMM_MODE API_THREAD_FUNNELED > Geo1438.res