Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile ufs_weather_model on Gaea-C5 #2268

Closed
DavidBurrows-NCO opened this issue May 6, 2024 · 6 comments · Fixed by #2269
Closed

Compile ufs_weather_model on Gaea-C5 #2268

DavidBurrows-NCO opened this issue May 6, 2024 · 6 comments · Fixed by #2269
Labels
enhancement New feature or request

Comments

@DavidBurrows-NCO
Copy link
Contributor

Description

ufs_weather_model is failing to build on Gaea-C5

Solution

Update modulefiles/ufs_gaea.intel.lua to compile ufs_weather_model on Gaea-C5

Alternatives

NA

Related to

@DusanJovic-NOAA
Copy link
Collaborator

@DavidBurrows-NCO Which build errors do you see on Gaea?

@DavidBurrows-NCO
Copy link
Contributor Author

@DusanJovic-NOAA

cd ufsm
module use modulefiles
module load ufs_gaea.intel
export CMAKE_FLAGS="-DAPP=ATM -DCCPP_SUITES=FV3_GFS_v16"
./build.sh

UFS MODEL DIR: /gpfs/f5/epic/scratch/David.Burrows/ufs_fails_to_build_on_gaea/ufsm
cmake: /opt/cray/pe/gcc/10.3.0/snos/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by cmake)

This occurs because cmake is not loaded.

@DusanJovic-NOAA
Copy link
Collaborator

@DavidBurrows-NCO
Copy link
Contributor Author

@DusanJovic-NOAA hmm. Maybe I'm confused. If I look at the develop branch then cmake is not loaded: develop branch

@DusanJovic-NOAA
Copy link
Collaborator

It is not loaded now, but in the 'original' version of ufs_gaea.intel.lua (before c5 support was added) it was. The initial version of ufs_gaea-c5.intel.lua did not have it. Here https://github.com/ufs-community/ufs-weather-model/blob/f42e347b1cad15b4b2470fecb17cb19bb2d19459/modulefiles/ufs_gaea.intel.lua

@DusanJovic-NOAA
Copy link
Collaborator

Then maybe this line is not needed anymore:

export LD_PRELOAD=/opt/cray/pe/gcc/12.2.0/snos/lib64/libstdc++.so.6

This was added as a quick fix for cmake issue, while in fact the problem was that cmake was not actually loaded from spack-stack installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants