CESM2.3 porting errors in building cdeps

Youwei

Youwei Ma
New Member
Hi, I am porting cesm2_3_alpha12b-2-g36edf01 to Ookami, an A64FX machine in c. I got an error message building cdeps:

Fortran diagnostic messages: program name(fox_m_utils_uri)
jwd1370i-s "/lustre/home/yomma/CESM/components/cdeps/fox/utils/fox_m_utils_uri.F90", line 10: Module or submodule 'fox_m_fsys_array_str' is not available.
jwd1370i-s "/lustre/home/yomma/CESM/components/cdeps/fox/utils/fox_m_utils_uri.F90", line 11: Module or submodule 'fox_m_fsys_format' is not available.
jwd1370i-s "/lustre/home/yomma/CESM/components/cdeps/fox/utils/fox_m_utils_uri.F90", line 12: Module or submodule 'fox_m_fsys_string' is not available.

CDEPS.bldlog is attached and jwd*-s are errors.
Before I got those errors, I edited a lot of specific machine and compiler settings. The config_machine.xml and cmake_macros for Fujitsu compiler is attached. Besides, I also changed some source codes taking reference from #4617, including CESM/share/src/shr_infnan_mod.F90.in and CESM/share/src/shr_reprosum_mod.F90 and added a Depends.fujitsu file (attached) in CESM/ccs_config/machine.

Any advice would be much appreciated!

Youwei
 

Attachments

jedwards

CSEG and Liaisons
Staff member
The claim is that the module generated for fox_m_fsys_array_str does not exist or cannot be found.
Can you find it?

It seems from this line:
Code:
cd /lustre/scratch/yomma/c.e23.CMOM.T62_t061.fujitsu/bld/fujitsu/mpi/nodebug/nothreads/nuopc/CDEPS/fox/fsys && /opt/FJSVstclanga/cp-1.0.21.02/bin/mpifrt -DCESMCOUPLED -DFC_EOR_LF -DFC_HAVE_ABORT -DFC_HAVE_FLUSH -I/lustre/scratch/yomma/c.e23.CMOM.T62_t061.fujitsu/bld/fujitsu/mpi/nodebug/nothreads/nuopc/CDEPS/fox/include -Kfast -KSVE -Nalloc_assign  -DCESMCOUPLED -DFORTRANUNDERSCORE -DNO_R16 -DCPRFUJITSU -I/lustre/scratch/yomma/c.e23.CMOM.T62_t061.fujitsu/bld/fujitsu/mpi/nodebug/nothreads/nuopc/include -I/lustre/scratch/yomma/c.e23.CMOM.T62_t061.fujitsu/bld/fujitsu/mpi/nodebug/nothreads/nuopc/nuopc/esmf/c1a1i1o1r1/include  -c /lustre/home/yomma/CESM/components/cdeps/fox/fsys/fox_m_fsys_array_str.F90 -o CMakeFiles/FoX_fsys.dir/fox_m_fsys_array_str.F90.o
/usr/bin/cmake -E cmake_copy_f90_mod fox/fsys/fox_m_fsys_array_str.mod fox/fsys/CMakeFiles/FoX_fsys.dir/fox_m_fsys_array_str.mod.stamp
/usr/bin/cmake -E touch fox/fsys/CMakeFiles/FoX_fsys.dir/fox_m_fsys_array_str.F90.o.provides.build

That it was built successfully.
 

Youwei

Youwei Ma
New Member
Thanks for your quick reply.
fox_m_fsys_array_str.mod, fox_m_fsys_format.mod, and fox_m_fsys_string.mod can be found in /lustre/scratch/yomma/c.e23.CMOM.T62_t061.fujitsu/bld/fujitsu/mpi/nodebug/nothreads/nuopc/CDEPS/fox/fsys
 

jedwards

CSEG and Liaisons
Staff member
The build is looking for them in /lustre/scratch/yomma/c.e23.CMOM.T62_t061.fujitsu/bld/fujitsu/mpi/nodebug/nothreads/nuopc/CDEPS/fox/include
so I think that the problem is that fsys is not in the include path.
 

Youwei

Youwei Ma
New Member
OK. Since there are no include directory in /lustre/scratch/yomma/c.e23.CMOM.T62_t061.fujitsu/bld/fujitsu/mpi/nodebug/nothreads/nuopc/CDEPS/fox/ for now, how should I add fsys in the include path? Manually copy *.mod in ...CDEPS/fox/fsys to ...CDEPS/fox/include?
 

jedwards

CSEG and Liaisons
Staff member
There must be a flag for your compiler to specify the directory to which mod files are written - can you just change that to be CDEPS/fox/include?
 
Back
Top