Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Commit

Permalink
Corrected legacy openmp compiler flags for intel compiler, added new …
Browse files Browse the repository at this point in the history
…compiler options ifort-mic, ifort-scorep, gfortran-clang
  • Loading branch information
climbfuji committed Sep 18, 2016
1 parent ec5a253 commit 5478728
Showing 1 changed file with 81 additions and 5 deletions.
86 changes: 81 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,66 @@ ifort:
"CFLAGS_DEBUG = -g -fpe0 -traceback" \
"CXXFLAGS_DEBUG = -g -fpe0 -traceback" \
"LDFLAGS_DEBUG = -g -fpe0 -traceback" \
"FFLAGS_OMP = -openmp" \
"CFLAGS_OMP = -openmp" \
"FFLAGS_OMP = -qopenmp" \
"CFLAGS_OMP = -qopenmp" \
"CORE = $(CORE)" \
"DEBUG = $(DEBUG)" \
"USE_PAPI = $(USE_PAPI)" \
"OPENMP = $(OPENMP)" \
"USE_GPTL = $(USE_GPTL)" \
"CPPFLAGS = $(MODEL_FORMULATION) -D_MPI -DUNDERSCORE" )

ifort-mic:
( $(MAKE) all \
"FC_PARALLEL = mpiifort" \
"CC_PARALLEL = mpiicc" \
"CXX_PARALLEL = mpiicpc" \
"FC_SERIAL = ifort" \
"CC_SERIAL = icc" \
"CXX_SERIAL = icpc" \
"FFLAGS_PROMOTION = -real-size 64" \
"FFLAGS_OPT = -O3 -mmic -convert big_endian -FR" \
"CFLAGS_OPT = -O3 -mmic" \
"CXXFLAGS_OPT = -O3 -mmic" \
"LDFLAGS_OPT = -O3 -mmic" \
"FFLAGS_DEBUG = -O0 -mmic -g -convert big_endian -FR -CU -CB -check all -fp-model strict -traceback" \
"CFLAGS_DEBUG = -O0 -mmic -g -fp-model strict -traceback" \
"CXXFLAGS_DEBUG = -O0 -mmic -g -fp-model strict -traceback" \
"LDFLAGS_DEBUG = -O0 -mmic -g -fp-model strict -traceback" \
"FFLAGS_OMP = -qopenmp" \
"CFLAGS_OMP = -qopenmp" \
"CORE = $(CORE)" \
"DEBUG = $(DEBUG)" \
"USE_PAPI = $(USE_PAPI)" \
"OPENMP = $(OPENMP)" \
"USE_GPTL = $(USE_GPTL)" \
"CPPFLAGS = $(MODEL_FORMULATION) -D_MPI -DUNDERSCORE" )

ifort-scorep:
( $(MAKE) all \
"FC_PARALLEL = scorep --compiler mpif90" \
"CC_PARALLEL = scorep --compiler mpicc" \
"CXX_PARALLEL = scorep --compiler mpicxx" \
"FC_SERIAL = ifort" \
"CC_SERIAL = icc" \
"CXX_SERIAL = icpc" \
"FFLAGS_PROMOTION = -real-size 64" \
"FFLAGS_OPT = -O3 -convert big_endian -FR" \
"CFLAGS_OPT = -O3" \
"CXXFLAGS_OPT = -O3" \
"LDFLAGS_OPT = -O3" \
"FFLAGS_DEBUG = -g -convert big_endian -FR -CU -CB -check all -fpe0 -traceback" \
"CFLAGS_DEBUG = -g -fpe0 -traceback" \
"CXXFLAGS_DEBUG = -g -fpe0 -traceback" \
"LDFLAGS_DEBUG = -g -fpe0 -traceback" \
"FFLAGS_OMP = -qopenmp" \
"CFLAGS_OMP = -qopenmp" \
"CORE = $(CORE)" \
"DEBUG = $(DEBUG)" \
"USE_PAPI = $(USE_PAPI)" \
"OPENMP = $(OPENMP)" \
"USE_GPTL = $(USE_GPTL)" \
"CPPFLAGS = $(MODEL_FORMULATION) -D_MPI -DUNDERSCORE" )

ifort-gcc:
( $(MAKE) all \
Expand All @@ -185,7 +236,7 @@ ifort-gcc:
"CFLAGS_DEBUG = -g" \
"CXXFLAGS_DEBUG = -g" \
"LDFLAGS_DEBUG = -g -fpe0 -traceback" \
"FFLAGS_OMP = -openmp" \
"FFLAGS_OMP = -qopenmp" \
"CFLAGS_OMP = -fopenmp" \
"CORE = $(CORE)" \
"DEBUG = $(DEBUG)" \
Expand Down Expand Up @@ -220,6 +271,31 @@ gfortran:
"USE_GPTL = $(USE_GPTL)" \
"CPPFLAGS = $(MODEL_FORMULATION) -D_MPI -DUNDERSCORE" )

gfortran-clang:
( $(MAKE) all \
"FC_PARALLEL = mpif90" \
"CC_PARALLEL = mpicc -cc=clang-omp" \
"CXX_PARALLEL = mpicxx -cxx=clang-omp++" \
"FC_SERIAL = gfortran" \
"CC_SERIAL = clang-omp" \
"CXX_SERIAL = clang-omp++" \
"FFLAGS_PROMOTION = -fdefault-real-8 -fdefault-double-8" \
"FFLAGS_OPT = -O3 -m64 -ffree-line-length-none -fconvert=big-endian -ffree-form" \
"CFLAGS_OPT = -O3 -m64" \
"CXXFLAGS_OPT = -O3 -m64" \
"LDFLAGS_OPT = -O3 -m64" \
"FFLAGS_DEBUG = -g -m64 -ffree-line-length-none -fconvert=big-endian -ffree-form -fbounds-check -fbacktrace -ffpe-trap=invalid,zero,overflow" \
"CFLAGS_DEBUG = -g -m64" \
"CXXFLAGS_DEBUG = -O3 -m64" \
"LDFLAGS_DEBUG = -g -m64" \
"FFLAGS_OMP = -fopenmp" \
"CFLAGS_OMP = -fopenmp" \
"CORE = $(CORE)" \
"DEBUG = $(DEBUG)" \
"USE_PAPI = $(USE_PAPI)" \
"OPENMP = $(OPENMP)" \
"USE_GPTL = $(USE_GPTL)" \
"CPPFLAGS = $(MODEL_FORMULATION) -D_MPI -DUNDERSCORE" )

g95:
( $(MAKE) all \
Expand Down Expand Up @@ -324,8 +400,8 @@ intel-nersc:
"CFLAGS_OPT = -O3" \
"CXXFLAGS_OPT = -O3" \
"LDFLAGS_OPT = -O3" \
"FFLAGS_OMP = -openmp" \
"CFLAGS_OMP = -openmp" \
"FFLAGS_OMP = -qopenmp" \
"CFLAGS_OMP = -qopenmp" \
"FFLAGS_DEBUG = -real-size 64 -g -convert big_endian -FR -CU -CB -check all -gen-interfaces -warn interfaces -traceback" \
"CFLAGS_DEBUG = -g -traceback" \
"CXXFLAGS_DEBUG = -g -traceback" \
Expand Down

0 comments on commit 5478728

Please sign in to comment.