Small confusion in configuration for compiling with oneAPI tools

satjemkes

Member
The latest distribution of WPS (4.7.0) has a minor mistake in the configuration for oneAPI. Unless this is done on purpose, but the DM_FC variable should point to the mpiifx script in the oneAPI distribution. The standard configuration points to mpifort, which is also distributed but it loads the gfortran compiler and not the ifx compiler. Hence for consistency reasons the mpiifx script should be used. Unless of course there is a good reason to use the gnu compiler with mpi. This would be interesting to learn.
stephen
 
The latest distribution of WPS (4.7.0) has a minor mistake in the configuration for oneAPI. Unless this is done on purpose, but the DM_FC variable should point to the mpiifx script in the oneAPI distribution. The standard configuration points to mpifort, which is also distributed but it loads the gfortran compiler and not the ifx compiler. Hence for consistency reasons the mpiifx script should be used. Unless of course there is a good reason to use the gnu compiler with mpi. This would be interesting to learn.
stephen
I just looked at the arch config and I see this:


C:
########################################################################################################################
#ARCH    Linux x86_64, Intel oneAPI compilers   # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
#
COMPRESSION_LIBS    = CONFIGURE_COMP_L
COMPRESSION_INC     = CONFIGURE_COMP_I
FDEFS               = CONFIGURE_FDEFS
SFC                 = ifx
SCC                 = icx
DM_FC               = mpif90
DM_CC               = mpicc
FC                  = CONFIGURE_FC
CC                  = CONFIGURE_CC
LD                  = $(FC)
FFLAGS              = -FR -convert big_endian
F77FLAGS            = -FI -convert big_endian
FCSUFFIX            =
FNGFLAGS            = $(FFLAGS)
LDFLAGS             =
CFLAGS              = -w
CPP                 = /lib/cpp -P -traditional
CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
ARFLAGS             =
CC_TOOLS            =
 
Back
Top