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

CESM2.3 porting issue (no timing information)

Joanna Liu

Zehui Liu
New Member
Hi all,
I'm porting cesm2_3_alpha17e to my school server (Svante at MIT). It seems to run successfully, but no timing information. No timing output in the ./run/timing/. folder (nothing in checkpoints either), and no timing folder is created in the case directory (attached run.FCnudged_cesmnew-t5).
I'm not sure if this is related to the server compilation settings (config_machines.xml, config_batch.xml, and config_compiler.xml), but I made similar changes to CESM2.3 and CESM2.2 on Svante.
No timing file found in run directory
I know there are some framework changes in CESM2.3 that require ESMF and replaced config_compiler.xml with cmake_macros. I have created svante.cmake and intel_svante.cmake but still no timing information.
I noticed there is a warning when gptl and cesm build (details information see the attached files):
/net/fs03/d0/zehui/CESM-GC/CESM2.3-GC/test2/my_cesm_sandbox/cime/CIME/non_py/src/timing/gptl.c(3444): warning #810: conversion from "struct ompi_communicator_t *" to "int" may lose significant bits if (((int) comm) == 0) ^
/net/fs03/d0/zehui/CESM-GC/CESM2.3-GC/test2/my_cesm_sandbox/components/cmeps/cime_config/../mediator/med_io_mod.F90(123): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [RC] subroutine med_io_init(gcomp, rc)--------------------------------^
I attached my ccs_config directory where I revised config_machines.xml, config_batch.xml, config_pio.xml, svante.cmake and intel_svante.cmake.
Also, I have a build issue, I encountered the following error when I built CESM 2.3.
gmake: SLIBS: Command not found gmake: *** [/net/fs03/d0/zehui/CESM/cesm2.3/cases/F2000climo/Tools/Makefile:538: rrtmg_sw_k_g.o] Error 127
I was able to build it successfully by commenting out the relevant commands, but I'm not sure if this is the right thing to do.
[zehui@svante F2000climo-t0]$ vim /net/fs03/d0/zehui/CESM-GC/CESM2.3-GC/cases/F2000climo-t0/Tools/Makefile
ifeq ($(COMP_NAME),cam)
# These RRTMG files take an extraordinarily long time to compile with optimization. Until mods are made to read the data from files, just remove optimization from their compilation.
#rrtmg_lw_k_g.o: rrtmg_lw_k_g.f90
# $(FC) -c $(FPPFLAGS) $(INCLDIR) $(INCS) $(FREEFLAGS) $(FFLAGS) $(FFLAGS_NOOPT) $<
#rrtmg_sw_k_g.o: rrtmg_sw_k_g.f90
# $(FC) -c $(FPPFLAGS) $(INCLDIR) $(INCS) $(FREEFLAGS) $(FFLAGS) $(FFLAGS_NOOPT) $<
Looking forward to your answers!
Best, Zehui
 

jedwards

CSEG and Liaisons
Staff member
You need to set two environment variables for ESMF timing to work, they are:
export ESMF_RUNTIME_PROFILE=ON
export ESMF_RUNTIME_PROFILE_OUTPUT=SUMMARY

I don't think that the warnings are anything of concern.
I'm not sure about the rrtmg error - it looks like it may be trying to use an executable gmake - do you have gmake in your path? It may just be make.

If you are able to complete the compile by removing the special instructions that should be fine.
 

Joanna Liu

Zehui Liu
New Member
You need to set two environment variables for ESMF timing to work, they are:
export ESMF_RUNTIME_PROFILE=ON
export ESMF_RUNTIME_PROFILE_OUTPUT=SUMMARY

I don't think that the warnings are anything of concern.
I'm not sure about the rrtmg error - it looks like it may be trying to use an executable gmake - do you have gmake in your path? It may just be make.

If you are able to complete the compile by removing the special instructions that should be fine.
Thanks for the quick response! I set these two environment variables in ./svante/config_machines.xml (see below lines), but still no timing output. Should I change something else?
<environment_variables comp_interface="nuopc">
<!-- required on all systems for timing file output -->
<env name="ESMF_RUNTIME_PROFILE">ON</env>
<env name="ESMF_RUNTIME_PROFILE_OUTPUT">SUMMARY</env>
</environment_variables>
 
Top