Commit eb478012 authored by GIORGIO AMATI's avatar GIORGIO AMATI

Delete 00-settings

parent 8982bbd4
#!/bin/bash
set -eu
specfem_top=$PWD/../
specfem_bench=$specfem_top/benchmarks
specfem_ref=$specfem_top/references
rundir=./data
specfem_version=git
compiler=intel
use_vectorization=true
use_openmp=false
use_cuda=false
nex_xi=512
nex_eta=512
nproc_xi=64
nproc_eta=64
nodes=64
ranks=4096
ranks_per_node=$[($ranks+$nodes-1)/$nodes]
threads_per_rank=$[64/$ranks_per_node]
echo "ranks_per_node="$ranks_per_node
echo "threads_per_rank="$threads_per_rank
compiler_module=intel/pe-xe-2017--binary
mpi_module=intelmpi/2017--binary
flags='-ftz -assume byterecl -align sequence -std08 -diag-disable 6477 -implicitnone -gen-interfaces -warn all -check nobounds -axMIC-AVX512 -O3'
cflags='-O3'
#cuda_module=cuda/9.2.88
cuda_module=
module load $compiler_module $mpi_module $cuda_module
#module load make/4.2.1
case $compiler in
pgi)
export FC=pgfortran
export CC=pgcc
export CXX=pgc++
export OMP_FCFLAGS=-mp
;;
gnu)
export FC=gfortran
export CC=gcc
export CXX=g++
export OMP_FCFLAGS=-fopenmp
;;
*)
;;
esac
export MPIFC=mpiifort
export FCFLAGS=$flags
export CFLAGS=$cflags
export CXXFLAGS=$cflags
export FLAGS_CHECK=$cflags
export LOCAL_PATH_IS_ALSO_GLOBAL=true
if [ $use_vectorization == true ]; then
if [ $specfem_version == git ]; then
ENABLE_VECTORIZATION=--enable-vectorization
else
ENABLE_VECTORIZATION=--with-vec
fi
else
ENABLE_VECTORIZATION=
fi
if [ $use_openmp == true ]; then
if [ $specfem_version == git ]; then
echo git version doesn\'t benefit from using --enable-openmp
exit 1
ENABLE_OPENMP=--enable-openmp
else
echo pcp version doesn\'t have --enable-openmp
exit 1
fi
else
ENABLE_OPENMP=
fi
if [ $use_cuda == true ]; then
if [ $specfem_version == git ]; then
ENABLE_CUDA=--with-cuda=cuda5
pu=gpu
else
echo pcp version doesn\'t work when using --with-cuda=cuda5
exit 1
ENABLE_CUDA=--with-cuda=cuda5
pu=gpu
fi
else
ENABLE_CUDA=
pu=cpu
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment