Skip to content

Commit

Permalink
Update Cheyenne and Derecho ports (CICE-Consortium#863)
Browse files Browse the repository at this point in the history
* Update cheyenne and derecho ports

cheyenne_intel updated to intel/19/1/1, mpt/2.25
cheyenne_gnu updated to gnu/8.3.0, mpt/2.25
cheyenne_pgi updated to pgi/19.9, mpt/2.22
derecho_intel minor updates
derecho_intelclassic added
derecho_inteloneapi added (not working)
derecho_gnu added
derecho_cray added
derecho_nvhpc added

cheyenne_pgi changed answers

derecho_inteloneapi is not working, compiler issues

fixes automated qc testing on cheyenne

* Update permissions on env.chicoma_intel
  • Loading branch information
apcraig authored and TillRasmussen committed Sep 16, 2023
1 parent f7e69ee commit b1af309
Show file tree
Hide file tree
Showing 19 changed files with 743 additions and 55 deletions.
6 changes: 3 additions & 3 deletions configuration/scripts/machines/Macros.cheyenne_gnu
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ LIB_NETCDF := $(NETCDF_PATH)/lib
#LIB_PNETCDF := $(PNETCDF_PATH)/lib
LIB_MPI := $(IMPILIBDIR)

#SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff -L$(LIB_PNETCDF) -lpnetcdf -lgptl
#SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff -L$(LIB_PNETCDF) -lpnetcdf
SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff

ifeq ($(ICE_THREADED), true)
Expand All @@ -72,8 +72,8 @@ ifeq ($(ICE_IOTYPE), pio1)
endif

ifeq ($(ICE_IOTYPE), pio2)
CPPDEFS := $(CPPDEFS) -DGPTL
CPPDEFS := $(CPPDEFS)
LIB_PIO := $(PIO_LIBDIR)
SLIBS := $(SLIBS) -L$(LIB_PIO) -lpiof -lpioc -lgptl
SLIBS := $(SLIBS) -L$(LIB_PIO) -lpiof -lpioc
endif

6 changes: 3 additions & 3 deletions configuration/scripts/machines/Macros.cheyenne_intel
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ LIB_NETCDF := $(NETCDF_PATH)/lib
#LIB_PNETCDF := $(PNETCDF_PATH)/lib
LIB_MPI := $(IMPILIBDIR)

#SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff -L$(LIB_PNETCDF) -lpnetcdf -lgptl
#SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff -L$(LIB_PNETCDF) -lpnetcdf
SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff

ifeq ($(ICE_THREADED), true)
Expand All @@ -61,8 +61,8 @@ ifeq ($(ICE_IOTYPE), pio1)
endif

ifeq ($(ICE_IOTYPE), pio2)
CPPDEFS := $(CPPDEFS) -DGPTL
CPPDEFS := $(CPPDEFS)
LIB_PIO := $(PIO_LIBDIR)
SLIBS := $(SLIBS) -L$(LIB_PIO) -lpiof -lpioc -lgptl
SLIBS := $(SLIBS) -L$(LIB_PIO) -lpiof -lpioc
endif

6 changes: 3 additions & 3 deletions configuration/scripts/machines/Macros.cheyenne_pgi
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ LIB_NETCDF := $(NETCDF_PATH)/lib
#LIB_PNETCDF := $(PNETCDF_PATH)/lib
LIB_MPI := $(IMPILIBDIR)

#SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff -L$(LIB_PNETCDF) -lpnetcdf -lgptl
#SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff -L$(LIB_PNETCDF) -lpnetcdf
SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff

ifeq ($(ICE_THREADED), true)
Expand All @@ -60,8 +60,8 @@ ifeq ($(ICE_IOTYPE), pio1)
endif

ifeq ($(ICE_IOTYPE), pio2)
CPPDEFS := $(CPPDEFS) -DGPTL
CPPDEFS := $(CPPDEFS)
LIB_PIO := $(PIO_LIBDIR)
SLIBS := $(SLIBS) -L$(LIB_PIO) -lpiof -lpioc -lgptl
SLIBS := $(SLIBS) -L$(LIB_PIO) -lpiof -lpioc
endif

66 changes: 66 additions & 0 deletions configuration/scripts/machines/Macros.derecho_cray
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#==============================================================================
# Macros file for NCAR derecho, cray compiler
#==============================================================================

CPP := ftn -e P
CPPDEFS := -DFORTRANUNDERSCORE -DNO_R16 ${ICE_CPPDEFS}
CFLAGS := -c -O2

FIXEDFLAGS := -132
FREEFLAGS :=
FFLAGS := -hbyteswapio
FFLAGS_NOOPT:= -O0
LDFLAGS := -hbyteswapio

ifeq ($(ICE_BLDDEBUG), true)
FFLAGS += -O0 -hfp0 -g -Rbcdps -Ktrap=fp
else
FFLAGS += -O2 -hfp0 # -eo
endif

SCC := cc
SFC := ftn
MPICC := cc
MPIFC := ftn

ifeq ($(ICE_COMMDIR), mpi)
FC := $(MPIFC)
CC := $(MPICC)
else
FC := $(SFC)
CC := $(SCC)
endif
LD:= $(FC)

# defined by module
#NETCDF_PATH := $(NETCDF)

#PIO_CONFIG_OPTS:= --enable-filesystem-hints=gpfs

#INCLDIR := $(INCLDIR)
#INCLDIR += -I$(NETCDF_PATH)/include

LIB_NETCDF := $(NETCDF)/lib
##LIB_PNETCDF := $(PNETCDF_PATH)/lib

SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff

ifeq ($(ICE_THREADED), true)
LDFLAGS += -fopenmp
CFLAGS += -fopenmp
FFLAGS += -fopenmp
else
LDFLAGS += -hnoomp
# CFLAGS += -hnoomp
FFLAGS += -hnoomp
endif

ifeq ($(ICE_IOTYPE), pio1)
LIB_PIO := $(PIO)/lib
SLIBS := $(SLIBS) -L$(LIB_PIO) -lpio
endif

ifeq ($(ICE_IOTYPE), pio2)
LIB_PIO := $(PIO)/lib
SLIBS := $(SLIBS) -L$(LIB_PIO) -lpiof -lpioc
endif
75 changes: 75 additions & 0 deletions configuration/scripts/machines/Macros.derecho_gnu
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#==============================================================================
# Makefile macros for NCAR derecho, gnu compiler
#==============================================================================

CPP := ftn -E
CPPDEFS := -DFORTRANUNDERSCORE ${ICE_CPPDEFS}
CFLAGS := -c

FIXEDFLAGS := -ffixed-line-length-132
FREEFLAGS := -ffree-form
FFLAGS := -fconvert=big-endian -fbacktrace -ffree-line-length-none -fallow-argument-mismatch
FFLAGS_NOOPT:= -O0

ifeq ($(ICE_BLDDEBUG), true)
FFLAGS += -O0 -g -fcheck=bounds -finit-real=nan -fimplicit-none -ffpe-trap=invalid,zero,overflow --std f2008
# FFLAGS += -O0 -g -fcheck=all -finit-real=snan -fimplicit-none -ffpe-trap=invalid,zero,overflow
CFLAGS += -O0
endif

ifeq ($(ICE_COVERAGE), true)
FFLAGS += -O0 -g -fprofile-arcs -ftest-coverage
CFLAGS += -O0 -g -coverage
LDFLAGS += -g -ftest-coverage -fprofile-arcs
endif

ifneq ($(ICE_BLDDEBUG), true)
ifneq ($(ICE_COVERAGE), true)
FFLAGS += -O2
CFLAGS += -O2
endif
endif

SCC := gcc
SFC := gfortran
MPICC := mpicc
MPIFC := mpif90

ifeq ($(ICE_COMMDIR), mpi)
FC := $(MPIFC)
CC := $(MPICC)
else
FC := $(SFC)
CC := $(SCC)
endif
LD:= $(FC)

NETCDF_PATH := $(NETCDF)

#PIO_CONFIG_OPTS:= --enable-filesystem-hints=gpfs

#INCLDIR := $(INCLDIR)

LIB_NETCDF := $(NETCDF_PATH)/lib
#LIB_PNETCDF := $(PNETCDF_PATH)/lib
#LIB_MPI := $(IMPILIBDIR)

#SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff -L$(LIB_PNETCDF) -lpnetcdf
SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff

ifeq ($(ICE_THREADED), true)
LDFLAGS += -fopenmp
CFLAGS += -fopenmp
FFLAGS += -fopenmp
endif

ifeq ($(ICE_IOTYPE), pio1)
LIB_PIO := $(PIO)/lib
SLIBS := $(SLIBS) -L$(LIB_PIO) -lpio
endif

ifeq ($(ICE_IOTYPE), pio2)
LIB_PIO := $(PIO)/lib
SLIBS := $(SLIBS) -L$(LIB_PIO) -lpiof -lpioc
endif

19 changes: 6 additions & 13 deletions configuration/scripts/machines/Macros.derecho_intel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#==============================================================================
# Makefile macros for NCAR cheyenne, intel compiler
# Makefile macros for NCAR derecho, intel compiler
#==============================================================================

CPP := fpp
Expand Down Expand Up @@ -37,14 +37,11 @@ NETCDF_PATH := $(NETCDF)

#PIO_CONFIG_OPTS:= --enable-filesystem-hints=gpfs

PNETCDF_PATH := $(PNETCDF)
#PNETCDF_PATH := /glade/u/apps/ch/opt/pio/2.2/mpt/2.15f/intel/17.0.1/lib
#PNETCDF_PATH := $(PNETCDF)

INCLDIR := $(INCLDIR)
#INCLDIR := $(INCLDIR)

LIB_NETCDF := $(NETCDF)/lib
#LIB_PNETCDF := $(PNETCDF_PATH)/lib
#LIB_MPI := $(IMPILIBDIR)

#SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff -L$(LIB_PNETCDF) -lpnetcdf -lgptl
SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff
Expand All @@ -55,15 +52,11 @@ ifeq ($(ICE_THREADED), true)
FFLAGS += -qopenmp
endif

#ifeq ($(ICE_IOTYPE), pio1)
# LIB_PIO := $(PIO_LIBDIR)
# SLIBS := $(SLIBS) -L$(LIB_PIO) -lpio
#endif
ifeq ($(ICE_IOTYPE), pio1)
SLIBS := $(SLIBS) -lpio
endif

ifeq ($(ICE_IOTYPE), pio2)
# CPPDEFS := $(CPPDEFS) -DGPTL
# LIB_PIO := $(PIO_LIBDIR)
# SLIBS := $(SLIBS) -L$(LIB_PIO) -lpiof -lpioc -lgptl
SLIBS := $(SLIBS) -lpiof -lpioc
endif

62 changes: 62 additions & 0 deletions configuration/scripts/machines/Macros.derecho_intelclassic
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#==============================================================================
# Makefile macros for NCAR derecho, intel compiler
#==============================================================================

CPP := fpp
CPPDEFS := -DFORTRANUNDERSCORE ${ICE_CPPDEFS}
CFLAGS := -c -O2 -fp-model precise -march=core-avx2

FIXEDFLAGS := -fixed -132
FREEFLAGS := -free
FFLAGS := -fp-model precise -convert big_endian -assume byterecl -ftz -traceback -march=core-avx2
FFLAGS_NOOPT:= -O0

ifeq ($(ICE_BLDDEBUG), true)
FFLAGS += -O0 -g -check uninit -check bounds -check pointers -fpe0 -check noarg_temp_created -link_mpi=dbg
# FFLAGS += -O0 -g -check all -fpe0 -ftrapuv -fp-model except -check noarg_temp_created -link_mpi=dbg -stand f08
# FFLAGS += -O0 -g -check all -fpe0 -ftrapuv -fp-model except -check noarg_temp_created -init=snan,arrays -link_mpi=dbg
else
FFLAGS += -O2
endif

SCC := icc
SFC := ifort
MPICC := mpicc
MPIFC := mpif90

ifeq ($(ICE_COMMDIR), mpi)
FC := $(MPIFC)
CC := $(MPICC)
else
FC := $(SFC)
CC := $(SCC)
endif
LD:= $(FC)

NETCDF_PATH := $(NETCDF)

#PIO_CONFIG_OPTS:= --enable-filesystem-hints=gpfs

#PNETCDF_PATH := $(PNETCDF)

#INCLDIR := $(INCLDIR)

LIB_NETCDF := $(NETCDF)/lib

#SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff -L$(LIB_PNETCDF) -lpnetcdf -lgptl
SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff

ifeq ($(ICE_THREADED), true)
LDFLAGS += -qopenmp
CFLAGS += -qopenmp
FFLAGS += -qopenmp
endif

ifeq ($(ICE_IOTYPE), pio1)
SLIBS := $(SLIBS) -lpio
endif

ifeq ($(ICE_IOTYPE), pio2)
SLIBS := $(SLIBS) -lpiof -lpioc
endif

62 changes: 62 additions & 0 deletions configuration/scripts/machines/Macros.derecho_inteloneapi
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#==============================================================================
# Makefile macros for NCAR derecho, intel compiler
#==============================================================================

CPP := fpp
CPPDEFS := -DFORTRANUNDERSCORE ${ICE_CPPDEFS}
CFLAGS := -c -O2 -fp-model precise -march=core-avx2

FIXEDFLAGS := -fixed -132
FREEFLAGS := -free
FFLAGS := -fp-model precise -convert big_endian -assume byterecl -ftz -traceback -march=core-avx2
FFLAGS_NOOPT:= -O0

ifeq ($(ICE_BLDDEBUG), true)
FFLAGS += -O0 -g -check uninit -check bounds -check pointers -fpe0 -check noarg_temp_created -link_mpi=dbg
# FFLAGS += -O0 -g -check all -fpe0 -ftrapuv -fp-model except -check noarg_temp_created -link_mpi=dbg -stand f08
# FFLAGS += -O0 -g -check all -fpe0 -ftrapuv -fp-model except -check noarg_temp_created -init=snan,arrays -link_mpi=dbg
else
FFLAGS += -O2
endif

SCC := icx
SFC := ifx
MPICC := mpicc
MPIFC := mpif90

ifeq ($(ICE_COMMDIR), mpi)
FC := $(MPIFC)
CC := $(MPICC)
else
FC := $(SFC)
CC := $(SCC)
endif
LD:= $(FC)

NETCDF_PATH := $(NETCDF)

#PIO_CONFIG_OPTS:= --enable-filesystem-hints=gpfs

#PNETCDF_PATH := $(PNETCDF)

#INCLDIR := $(INCLDIR)

LIB_NETCDF := $(NETCDF)/lib

#SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff -L$(LIB_PNETCDF) -lpnetcdf -lgptl
SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff

ifeq ($(ICE_THREADED), true)
LDFLAGS += -qopenmp
CFLAGS += -qopenmp
FFLAGS += -qopenmp
endif

ifeq ($(ICE_IOTYPE), pio1)
SLIBS := $(SLIBS) -lpio
endif

ifeq ($(ICE_IOTYPE), pio2)
SLIBS := $(SLIBS) -lpiof -lpioc
endif

Loading

0 comments on commit b1af309

Please sign in to comment.