forked from MPAS-Dev/MPAS-Model
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
upstreamBelieved to originate in the MPAS-Dev/MPAS-Model code rather than ufs-community/MPAS-Model code.Believed to originate in the MPAS-Dev/MPAS-Model code rather than ufs-community/MPAS-Model code.
Description
The optimization settings in the Makefile are absent from the CMake-based build system. This will lead to different performance. @guoqing-noaa alerted me to this problem.
From Makefile:
intel: # BUILDTARGET Intel oneAPI Fortran, C, and C++ compiler suite
( $(MAKE) all \
"FC_PARALLEL = mpifort" \
"CC_PARALLEL = mpicc" \
"CXX_PARALLEL = mpic++" \
"FC_SERIAL = ifx" \
"CC_SERIAL = icx" \
"CXX_SERIAL = icpx" \
"FFLAGS_PROMOTION = -real-size 64" \
"FFLAGS_OPT = -O3 -convert big_endian -free -align array64byte" \
"CFLAGS_OPT = -O3" \
"CXXFLAGS_OPT = -O3" \
"LDFLAGS_OPT = -O3" \
"FFLAGS_DEBUG = -g -convert big_endian -free -check bounds,pointers,arg_temp_created,format,shape,contiguous -fpe0 -traceback" \
"CFLAGS_DEBUG = -g -traceback" \
"CXXFLAGS_DEBUG = -g -traceback" \
"LDFLAGS_DEBUG = -g -traceback" \
"FFLAGS_OMP = -qopenmp" \
"CFLAGS_OMP = -qopenmp" \
"PICFLAG = -fpic" \
"BUILD_TARGET = $(@)" \
"CORE = $(CORE)" \
"DEBUG = $(DEBUG)" \
"USE_PAPI = $(USE_PAPI)" \
"OPENMP = $(OPENMP)" \
"CPPFLAGS = $(MODEL_FORMULATION) -D_MPI" )
I can't find the -O3 -convert big_endian -free -align array64byte anywhere in the CMake-based build system.
Metadata
Metadata
Assignees
Labels
upstreamBelieved to originate in the MPAS-Dev/MPAS-Model code rather than ufs-community/MPAS-Model code.Believed to originate in the MPAS-Dev/MPAS-Model code rather than ufs-community/MPAS-Model code.