Page MenuHomec4science

optim.sub
No OneTemporary

File Metadata

Created
Sat, Nov 9, 05:59

optim.sub

#!/bin/bash
##SBATCH --reservation=phpc2017
##SBATCH --account=phpc2017
#SBATCH -N 1
#SBATCH -n 1
OPTIMS="-O0 -O1 -O2 -O3"
N=512
module load gcc
echo gcc > gcc.out
for _opt in ${OPTIMS} '-O3 -ftree-vectorize'
do
make clean
make CXXFLAGS="-std=c++11 ${_opt}" CXX=g++
./poisson $N| cut -f4 -d " " >> gcc.out
done
module load intel
echo icpc > intel.out
for _opt in ${OPTIMS} '-O3 -xHOST'
do
make clean
make CXXFLAGS="-std=c++11 ${_opt}" CXX=icpc
./poisson $N | cut -f4 -d " " >> intel.out
done
echo " ${OPTIMS} specific" | tr " " "\n" > header
paste header gcc.out intel.out > compilers.out

Event Timeline