Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Compiler Flags for Intel 19 CESM1.2.2

Hi CESM Community,

My computer system I use has upgraded to intel/19.1.1.217 and now CESM1.2.2 does not compile. Our technical staff has recommended purging all references to intel/18.
Unfortunately, I do not know much about intel flags, and does anyone know which flags should be activated for intel?

For example, these were the intel 18 compiler flags we used before:
<compiler COMPILER="intel">
<!-- Intel® Developer Zone -->
<ADD_CPPDEFS> -DFORTRANUNDERSCORE -DNO_R16</ADD_CPPDEFS>
<ADD_CFLAGS compile_threaded="true"> -openmp </ADD_CFLAGS>
<ADD_FFLAGS compile_threaded="true"> -openmp </ADD_FFLAGS>
<ADD_LDFLAGS compile_threaded="true"> -openmp </ADD_LDFLAGS>
<FREEFLAGS> -free </FREEFLAGS>
<FIXEDFLAGS> -fixed -132 </FIXEDFLAGS>
<ADD_FFLAGS DEBUG="TRUE"> -O0 -g -check uninit -check bounds -check pointers -fpe0 </ADD_FFLAGS>
<ADD_FFLAGS DEBUG="FALSE"> -O2 </ADD_FFLAGS>
<FFLAGS> -fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs </FFLAGS>
<CFLAGS> -O2 -fp-model precise </CFLAGS>
<FFLAGS_NOOPT> -O0 </FFLAGS_NOOPT>
<FC_AUTO_R8> -r8 </FC_AUTO_R8>
<SFC> ifort </SFC>
<SCC> icc </SCC>
<SCXX> icpc </SCXX>
<MPIFC> mpif90 </MPIFC>
<MPICC> mpicc </MPICC>
<MPICXX> mpicxx </MPICXX>
<CXX_LINKER>FORTRAN</CXX_LINKER>
<CXX_LDFLAGS> -cxxlib </CXX_LDFLAGS>
<SUPPORTS_CXX>TRUE</SUPPORTS_CXX>
</compiler>




Thanks for help.
Cheers,
-Jonathan
 

katec

CSEG and Liaisons
Staff member
Hi Jonathan, I think it would be really helpful if you could give us some more information on the build errors you are seeing. Also, you should know that we are not supporting CESM 1 any longer. If you upgrade to CESM 2, that has better support for more recent compilers. The most recent version of CIME has our flags set for intel 19 on Cheyenne. You can find those under "intel" in this file: ESMCI/cime
 
Hi Katec,

Although I would like to use CESM2, our computational allocation cannot support the resources that CESM2 requires, therefore this project defaults CESM1.2.2. Our experimental design builds upon simulations that previously used CESM1.2.2 CAM5.

Below are some of the errors I am encountering. At the end I list the Macros file.

Cheers,
-Jonathan



Example errors:
from csm_share.bldlog

ftn -c -I. -I/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/include -I/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/cray/pe/netcdf-hdf5parallel/4.7.4.0/INTEL/19.1/include -I/opt/cray/pe/mpt/7.7.15/gni/mpich-intel/16.0/include -I/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/include -I/users/jbuzan/cesm1_2_2/models/csm_share/shr -I. -I/scratch/snx3000/jbuzan/cases/Production_Runs/B.PI.CNTL.01_0_CN.x2.122_test101220/SourceMods/src.share -I/users/jbuzan/cesm1_2_2/models/drv/shr -I/users/jbuzan/cesm1_2_2/models/dead_share -I/users/jbuzan/cesm1_2_2/models/csm_share/shr -I/users/jbuzan/cesm1_2_2/models/utils/esmf_wrf_timemgr -I/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/include -DNUM_COMP_INST_ATM=1 -DNUM_COMP_INST_LND=1 -DNUM_COMP_INST_OCN=1 -DNUM_COMP_INST_ICE=1 -DNUM_COMP_INST_GLC=1 -DNUM_COMP_INST_WAV=1 -DNUM_COMP_INST_ROF=1 -DCNL -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DLINUX -DCNL -DCPR -DHAVE_SLASHPROC /users/jbuzan/cesm1_2_2/models/csm_share/shr/shr_test_infnan_mod.F90

/users/jbuzan/cesm1_2_2/models/utils/esmf_wrf_timemgr/ESMF_BaseMod.F90(672): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [TYPE]
subroutine ESMF_AttributeGetbyNumber(anytype, number, name, type, value, rc)
------------------------------------------------------------------^
/users/jbuzan/cesm1_2_2/models/utils/esmf_wrf_timemgr/ESMF_BaseMod.F90(623): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [TYPE]
subroutine ESMF_AttributeGet(anytype, name, type, value, rc)
--------------------------------------------------^
/users/jbuzan/cesm1_2_2/models/utils/esmf_wrf_timemgr/ESMF_BaseMod.F90(699): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [NAMELIST]
subroutine ESMF_AttributeGetNameList(anytype, count, namelist, rc)
-----------------------------------------------------------^
/users/jbuzan/cesm1_2_2/models/utils/esmf_wrf_timemgr/ESMF_BaseMod.F90(672): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [VALUE]
subroutine ESMF_AttributeGetbyNumber(anytype, number, name, type, value, rc)
------------------------------------------------------------------------^
/users/jbuzan/cesm1_2_2/models/utils/esmf_wrf_timemgr/ESMF_BaseMod.F90(623): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [VALUE]
subroutine ESMF_AttributeGet(anytype, name, type, value, rc)
--------------------------------------------------------^
/users/jbuzan/cesm1_2_2/models/utils/esmf_wrf_timemgr/ESMF_BaseMod.F90(699): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [COUNT]
subroutine ESMF_AttributeGetNameList(anytype, count, namelist, rc)
----------------------------------------------------^
/users/jbuzan/cesm1_2_2/models/utils/esmf_wrf_timemgr/ESMF_BaseMod.F90(648): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [COUNT]
subroutine ESMF_AttributeGetCount(anytype, count, rc)
-------------------------------------------------^
/users/jbuzan/cesm1_2_2/models/utils/esmf_wrf_timemgr/ESMF_BaseMod.F90(802): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [VALUELIST]
subroutine ESMF_AttributeGetObjectList(anytypelist, name, typelist, valuelist, rc)
--------------------------------------------------------------------------^
/users/jbuzan/cesm1_2_2/models/utils/esmf_wrf_timemgr/ESMF_BaseMod.F90(750): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [VALUELIST]
subroutine ESMF_AttributeGetList(anytype, namelist, typelist, valuelist, rc)
--------------------------------------------------------------------^
/users/jbuzan/cesm1_2_2/models/utils/esmf_wrf_timemgr/ESMF_BaseMod.F90(802): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [TYPELIST]
subroutine ESMF_AttributeGetObjectList(anytypelist, name, typelist, valuelist, rc)
----------------------------------------------------------------^
/users/jbuzan/cesm1_2_2/models/utils/esmf_wrf_timemgr/ESMF_BaseMod.F90(750): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [TYPELIST]
subroutine ESMF_AttributeGetList(anytype, namelist, typelist, valuelist, rc)
----------------------------------------------------------^

From the mct.bldlog:
ftn -c -DCNL -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DLINUX -DCNL -DCPR -DHAVE_SLASHPROC -DSYSLINUX -DCPR -I. -I/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/include -I/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/cray/pe/netcdf-hdf5parallel/4.7.4.0/INTEL/19.1/include -I/opt/cray/pe/mpt/7.7.15/gni/mpich-intel/16.0/include -I/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/include -I/users/jbuzan/cesm1_2_2/models/csm_share/shr -I/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220/nodebug/nothreads/mct/mpeu /users/jbuzan/cesm1_2_2/models/utils/mct/mct/m_AttrVect.F90
/users/jbuzan/cesm1_2_2/models/utils/mct/mct/m_AttrVect.F90(2595): remark #5140: Unrecognized directive
!DIR$ CONCURRENT
----------------^

from pio.bldlog:
gmake[3]: Entering directory '/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220/nodebug/nothreads/pio'
[ 85%] Building Fortran object CMakeFiles/pio.dir/piolib_mod.F90.o
/opt/cray/pe/craype/2.7.0/bin/ftn -DPIO_LUSTRE_HINTS -DUSEMPIIO -D_NETCDF -D_NETCDF4 -D_NOPNETCDF -D_NOUSEMCT -D_USEBOX -I/users/jbuzan/cesm1_2_2/models/utils/pio -I/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220/nodebug/nothreads/pio -I/opt/cray/pe/netcdf-hdf5parallel/4.7.4.0/INTEL/19.1/include -DCNL -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DLINUX -DCNL -DCPR -DHAVE_SLASHPROC -I. -I/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/include -I/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/opt/cray/pe/netcdf-hdf5parallel/4.7.4.0/INTEL/19.1/include -I/opt/cray/pe/mpt/7.7.15/gni/mpich-intel/16.0/include -I/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/include -I/users/jbuzan/cesm1_2_2/models/csm_share/shr -c /users/jbuzan/cesm1_2_2/models/utils/pio/piolib_mod.F90 -o CMakeFiles/pio.dir/piolib_mod.F90.o
/users/jbuzan/cesm1_2_2/models/utils/pio/piolib_mod.F90(2098): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [IOPROC]
subroutine pio_recommend_iotasks(comm, ioproc, numiotasks, miniotasks, maxiotasks )
-----------------------------------------^
/users/jbuzan/cesm1_2_2/models/utils/pio/piolib_mod.F90(2098): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [NUMIOTASKS]
subroutine pio_recommend_iotasks(comm, ioproc, numiotasks, miniotasks, maxiotasks )
-------------------------------------------------^
/usr/bin/cmake -E cmake_copy_f90_mod piolib_mod CMakeFiles/pio.dir/piolib_mod.mod.stamp Intel
 
> cat gptl.bldlog.201211-085654
Fri Dec 11 08:59:56 CET 2020 /scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/gptl.bldlog.201211-085654
Copying source to CESM EXEROOT...
cc -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/gptl.c
cc -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/GPTLutil.c
cc -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/GPTLget_memusage.c
cc -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/GPTLprint_memusage.c
cc -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/gptl_papi.c
cc -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/f_wrappers.c
ftn -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/perf_utils.F90
ftn -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/perf_mod.F90
ar ruv libgptl.a gptl.o GPTLutil.o GPTLget_memusage.o GPTLprint_memusage.o gptl_papi.o f_wrappers.o perf_mod.o perf_utils.o
ar: creating libgptl.a
a - gptl.o
a - GPTLutil.o
a - GPTLget_memusage.o
a - GPTLprint_memusage.o
a - gptl_papi.o
a - f_wrappers.o
a - perf_mod.o
a - perf_utils.o
cp -p *.mod /scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/include
cp -p libgptl.a /scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/lib


from cesm.bldlog:
ftn -o /scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//cesm.exe ccsm_comp_mod.o ccsm_driver.o mrg_mod.o seq_avdata_mod.o seq_diag_mct.o seq_domain_mct.o seq_flux_mct.o seq_frac_mct.o seq_hist_mod.o seq_map_esmf.o seq_map_mod.o seq_mctext_mod.o seq_rest_mod.o -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -latm -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -lice -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -llnd -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -locn -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -lrof -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -lglc -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -lwav -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -lcsm_share -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/lib -lpio -lgptl -lmct -lmpeu -L/opt/cray/pe/netcdf-hdf5parallel/4.7.4.0/INTEL/19.1/lib -lnetcdf -L/opt/cray/pe/mpt/7.7.15/gni/mpich-intel/16.0/lib -lmpich
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share/libcsm_share.a(shr_mem_mod.o): in function `shr_mem_mod_mp_shr_mem_getusage_':
shr_mem_mod.F90:(.text+0x39): undefined reference to `gptlget_memusage_'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share/libcsm_share.a(shr_mem_mod.o): in function `shr_mem_mod_mp_shr_mem_init_':
shr_mem_mod.F90:(.text+0x107): undefined reference to `gptlget_memusage_'


Macros file:
> cat Macros
#
# Makefile Macros generated from /users/jbuzan/cesm1_2_2/scripts/ccsm_utils/Machines/config_compilers.xml using
# COMPILER=
# OS=CNL
# MACH=daint
#
CPPDEFS+= -DLINUX -DCNL -DCPR
MPICC:= cc
MPICXX:= CC
MPIFC:= ftn
MPI_LIB_NAME:= mpich
MPI_PATH:= $(MPICH_DIR)
NETCDF_PATH:= $(NETCDF_DIR)
PIO_FILESYSTEM_HINTS:=lustre
PNETCDF_PATH:= $(PARALLEL_NETCDF_DIR)
SCC:= cc
SCXX:= CC
SFC:= ftn
SUPPORTS_CXX:=FALSE
ifeq ($(MODEL), pop2)
CPPDEFS += -D_USE_FLOW_CONTROL
endif
 

Besuyi

Besuyi
Member
> cat gptl.bldlog.201211-085654
Fri Dec 11 08:59:56 CET 2020 /scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/gptl.bldlog.201211-085654
Copying source to CESM EXEROOT...
cc -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/gptl.c
cc -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/GPTLutil.c
cc -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/GPTLget_memusage.c
cc -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/GPTLprint_memusage.c
cc -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/gptl_papi.c
cc -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/f_wrappers.c
ftn -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/perf_utils.F90
ftn -c -I/users/jbuzan/cesm1_2_2/models/utils/timing -DLINUX -DCNL -DCPR -DHAVE_MPI /users/jbuzan/cesm1_2_2/models/utils/timing/perf_mod.F90
ar ruv libgptl.a gptl.o GPTLutil.o GPTLget_memusage.o GPTLprint_memusage.o gptl_papi.o f_wrappers.o perf_mod.o perf_utils.o
ar: creating libgptl.a
a - gptl.o
a - GPTLutil.o
a - GPTLget_memusage.o
a - GPTLprint_memusage.o
a - gptl_papi.o
a - f_wrappers.o
a - perf_mod.o
a - perf_utils.o
cp -p *.mod /scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/include
cp -p libgptl.a /scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/lib


from cesm.bldlog:
ftn -o /scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//cesm.exe ccsm_comp_mod.o ccsm_driver.o mrg_mod.o seq_avdata_mod.o seq_diag_mct.o seq_domain_mct.o seq_flux_mct.o seq_frac_mct.o seq_hist_mod.o seq_map_esmf.o seq_map_mod.o seq_mctext_mod.o seq_rest_mod.o -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -latm -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -lice -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -llnd -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -locn -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -lrof -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -lglc -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220//lib/ -lwav -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -lcsm_share -L/scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/lib -lpio -lgptl -lmct -lmpeu -L/opt/cray/pe/netcdf-hdf5parallel/4.7.4.0/INTEL/19.1/lib -lnetcdf -L/opt/cray/pe/mpt/7.7.15/gni/mpich-intel/16.0/lib -lmpich
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share/libcsm_share.a(shr_mem_mod.o): in function `shr_mem_mod_mp_shr_mem_getusage_':
shr_mem_mod.F90:(.text+0x39): undefined reference to `gptlget_memusage_'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /scratch/snx3000/jbuzan/output/B.PI.CNTL.01_0_CN.x2.122_test101220////nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share/libcsm_share.a(shr_mem_mod.o): in function `shr_mem_mod_mp_shr_mem_init_':
shr_mem_mod.F90:(.text+0x107): undefined reference to `gptlget_memusage_'


Macros file:
> cat Macros
#
# Makefile Macros generated from /users/jbuzan/cesm1_2_2/scripts/ccsm_utils/Machines/config_compilers.xml using
# COMPILER=
# OS=CNL
# MACH=daint
#
CPPDEFS+= -DLINUX -DCNL -DCPR
MPICC:= cc
MPICXX:= CC
MPIFC:= ftn
MPI_LIB_NAME:= mpich
MPI_PATH:= $(MPICH_DIR)
NETCDF_PATH:= $(NETCDF_DIR)
PIO_FILESYSTEM_HINTS:=lustre
PNETCDF_PATH:= $(PARALLEL_NETCDF_DIR)
SCC:= cc
SCXX:= CC
SFC:= ftn
SUPPORTS_CXX:=FALSE
ifeq ($(MODEL), pop2)
CPPDEFS += -D_USE_FLOW_CONTROL
endif
could you tell me how the issue was finally solved? thanks
 
cat Macros


#


# Makefile Macros generated from /users/jbuzan/cesm1_2_2/scripts/ccsm_utils/Machines/config_compilers.xml using


# COMPILER=intel


# OS=CNL


# MACH=daint


#


CPPDEFS+= -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCNL -DCPRINTEL -DLINUX -DCNL -DCPRINTEL





CXX_LDFLAGS:= -cxxlib





CXX_LINKER:= FORTRAN





FC_AUTO_R8:= -r8





FFLAGS:= -fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs





FFLAGS_NOOPT:= -O0





FIXEDFLAGS:= -fixed -132





FREEFLAGS:= -free





MPICC:= cc





MPICXX:= CC





MPIFC:= ftn





MPI_LIB_NAME:= mpich





MPI_PATH:= $(MPICH_DIR)





NETCDF_PATH:= $(NETCDF_DIR)





PIO_FILESYSTEM_HINTS:=lustre





PNETCDF_PATH:= $(PARALLEL_NETCDF_DIR)





SCC:= cc





SCXX:= CC





SFC:= ftn





SUPPORTS_CXX:= TRUE





ifeq ($(MODEL), pop2)


CPPDEFS += -D_USE_FLOW_CONTROL


endif





ifeq ($(compile_threaded), true)


LDFLAGS += -openmp -homp


FFLAGS += -openmp -homp


CFLAGS += -openmp -homp


endif





ifeq ($(DEBUG), FALSE)


FFLAGS += -O2


endif





ifeq ($(DEBUG), TRUE)


FFLAGS += -O0 -g -check uninit -check bounds -check pointers -fpe0


endif
 
Top