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 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

  • CDEPS.bldlog.231120-141402.txt
    49.7 KB · Views: 3
  • config_machines.xml.txt
    8 KB · Views: 3
  • fujitsu.cmake.txt
    1.3 KB · Views: 1
  • fujitsu_ookami.cmake.txt
    226 bytes · Views: 0
  • Depends.fujitsu.txt
    166 bytes · Views: 2

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?
 
Top