Skip to content

Commit

Permalink
Merge pull request #559 from lsiess/master
Browse files Browse the repository at this point in the history
implement new intel ifx compiler setup
  • Loading branch information
danieljprice authored Jun 26, 2024
2 parents 601a2aa + 9393ed1 commit d2af389
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/MakeKrome
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ KROME_BUILD_DIR = ${KROMEPATH}/build
KFLAGS=$(filter-out -std=f2008, $(FFLAGS))
ifeq ($(SYSTEM), ifort)
KFLAGS += -O3 -ipo -ip -unroll -xHost -g -fp-model precise
else
ifeq ($(SYSTEM), ifx)
KFLAGS += -O3 -ipo -ip -unroll -xHost -g -fp-model precise
else
KFLAGS += -ffree-line-length-none -w -fallow-argument-mismatch
endif
endif
FFLAGS+= -I$(KROME_BUILD_DIR)
PASSED=0

Expand Down
1 change: 1 addition & 0 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,7 @@ giza-fortran.o : $(SPLASH_DIR)/giza/interface/giza-fortran.F90 $(SPLASH_DIR)/giz

compilers:
@echo "I suggest one of the following, based on detected Fortran compilers..."; echo;
@if type -p ifx > /dev/null; then echo "make SYSTEM=ifx"; fi;
@if type -p ifort > /dev/null; then echo "make SYSTEM=ifort"; fi;
@if type -p pathf90 > /dev/null; then echo "make SYSTEM=pathf90"; fi;
@if type -p pgf90 > /dev/null; then echo "make SYSTEM=pgf90"; fi;
Expand Down
17 changes: 17 additions & 0 deletions build/Makefile_defaults_ifx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# default settings for ifx compiler
# override these in the Makefile
FC= ifx
#FFLAGS= -O3 -inline-factor=500 -shared-intel -warn uninitialized -warn unused -warn truncated_source -no-wrap-margin
FFLAGS= -O3 -shared-intel -warn uninitialized -warn unused -warn truncated_source -no-wrap-margin
DBLFLAG= -r8
DEBUGFLAG= -check all -WB -traceback -g -debug all # -fpe0 -fp-stack-check -debug all -noarg_temp_created
#DEBUGFLAG= -g -traceback -check all -check bounds -check uninit -ftrapuv -debug all -warn all,nodec,interfaces,nousage -fpe0 -fp-stack-check -WB -no-diag-error-limit -no-wrap-margin -O0 -noarg_temp_created
ENDIANFLAGBIG= -convert big_endian
ENDIANFLAGLITTLE= -convert little_endian
# or use setenv F_UFMTENDIAN=big:45 at runtime (e.g. for unit 45 only)
CC = icc
CCFLAGS = -O3
LIBCXX = -cxxlib
KNOWN_SYSTEM=yes

OMPFLAGS= -qopenmp
5 changes: 5 additions & 0 deletions build/Makefile_systems
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ ifeq ($(SYSTEM), ifort)
include Makefile_defaults_ifort
endif

ifeq ($(SYSTEM), ifx)
# default settings for the new Intel Fortran Compiler
include Makefile_defaults_ifx
endif

ifeq ($(SYSTEM), ifortmac)
# default settings for the Intel Fortran Compiler on Mac OS
include Makefile_defaults_ifort
Expand Down

0 comments on commit d2af389

Please sign in to comment.