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

Fix bug in CMakeLists.txt (get_filename_component was using non-existent path as BASE_DIR), use ip@5: if available instead of sp #1090

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Oct 7, 2024

Description

This PR does two things:

  1. Fix a bug in CMakeLists.txt: The first call to get_filename_component seems to be using an uninitialized (empty) variable LOCAL_CURRENT_SOURCE_DIR as BASE_DIR argument. It would be good if somebody could verify that.
  2. The sp library is deprecated and replaced by ip@5 and newer (drop-in replacement). While [email protected] is still in spack-stack-1.8.0, ip-5.0.0 is also available. We expect sp to be removed in spack-stack-1.9.0.

Because of (2), similar changes need to be made in the host model (SCM: PR to come in a minute, UFS: someone else needs to do).

Note that I cannot compile the SCM on my laptop with GCC, because the SCHEMES_OPENMP_OFF logic seems to be not working as expected (with and without the change made in 1 I believe), therefore I would like to ask someone else to test these two changes, please.

…ent path as BASE_DIR), use ip@5: if available instead of sp
Copy link
Collaborator

@dustinswales dustinswales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@climbfuji Thanks for making these changes.
@grantfirl Is there and open ccpp-physics:ufs/dev PR that I(you) could add this on the UFS side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants