#!/bin/bash module purge compiler=intel compiler_version=pe-xe-2018--binary libmpi=intelmpi mpi_release=2018--binary module load $compiler/$compiler_version $libmpi/$mpi_release export machine=marconi-knl export software=specfem3d_globe export version=31octobre export install_dir=$CINECA_SCRATCH/benchmarks/$machine/$software/$version/${compiler}/$compiler_version/$libmpi/$mpi_release export CC="mpiicc" export FC="mpiifort" export MPIFC=$FC #From BPG KNL export FCFLAGS=" -g -O3 -qopenmp -xMIC-AVX512 -DUSE_FP32 -DOPT_STREAMS -fp-model fast=2 -traceback -mcmodel=large -fma -align array64byte -finline-functions -ipo" export CFLAGS=" -g -O3 -xMIC-AVX512 -fma -align -finline-functions -ipo" #From vitcor cameo ponz #FCFLAGS = -g -O3 -qopenmp -xMIC-AVX512 -DUSE_FP32 -DOPT_STREAMS -align array64byte -fp-model fast=2 -traceback -mcmodel=large export FCFLAGS_f90='-mod ./obj -I./obj -I. -I. -I${SETUP} -xMIC-AVX512' export CPPFLAGS='-I${SETUP} -DFORCE_VECTORIZATION -xMIC-AVX512'