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

Per-library or model compiler flag in CESM 3.0?

Hi,
I'm trying to port CESM 3.0 b02 on Fujitsu FX1000 platform.
Its compiler seems to have some compatibility issues with the code (as expected lol).
My other colleague did some porting of CESM 2.2 on the same platform largely successful, but he uses some per-model setting in the config_compiler.xml, such as:

<compiler COMPILER="fujitsu" MACH="fx1000>
......
<append MODEL="fms"> -Haefosu -X03 </append>

But now in CESM3, the role of config_compiler.xml was replaced by CMake macros.
Can I do the same with CMake? If so, how can I do it?
I'm currently stuck in the FMS, if that matters :p

Thanks in advance!

Mike Chen
Research Assistant / Technician
Institute of Oceanography, National Taiwan University
 

jedwards

CSEG and Liaisons
Staff member
It sounds like you've found the key. The machine specific macros are now in the ccs_config/machines/machine_name directory.
while macros not specific to a machine are found in the ccs_config/machines/cmake_macros directory.
 

jedwards

CSEG and Liaisons
Staff member
Another way to do it on an individual file basis is to modify the Depends.compiler file in the
ccs_config/machines directory. Here is an example where optimization of some of the FMS routines is
reduced for the intel-oneapi compiler.
 
Top