module load intel/15.0.0.090 intelmpi/5.0.1.035 scotch/6.0.3

export I_MPI_PIN=1
export I_MPI_PMI_LIBRARY=/usr/lib64/libpmi.so

export PASTIX_DIR=$SHAREDHOMEDIR/pastix_5.2.2.20/
export PASTIX_BIN=$PASTIX_DIR/install
export PASTIX_LIB=$PASTIX_DIR/install
export PASTIX_INC=$PASTIX_DIR/install

salloc -N 2 -n 2 -c 24 --threads-per-core=1 -t 01:30:00 --reservation=PA04_2015

srun -n 2 -c 24 hostname | sort -u

cp -r $PASTIX_DIR/src/example ~/pastix
cd ~/pastix/src
make
cd ../bin

srun -n 2 -c 24 ./simple -lap 10000 -t 24

