diff --git a/build/MakeKrome b/build/MakeKrome index 0171e2408..ffa537545 100644 --- a/build/MakeKrome +++ b/build/MakeKrome @@ -6,6 +6,9 @@ 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 diff --git a/build/Makefile b/build/Makefile index 646826dca..a6a52c554 100644 --- a/build/Makefile +++ b/build/Makefile @@ -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; diff --git a/build/Makefile_defaults_ifx b/build/Makefile_defaults_ifx new file mode 100644 index 000000000..1e00e3918 --- /dev/null +++ b/build/Makefile_defaults_ifx @@ -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 diff --git a/build/Makefile_systems b/build/Makefile_systems index d38bd096e..4a3c950f3 100644 --- a/build/Makefile_systems +++ b/build/Makefile_systems @@ -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