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

Update camke scripts for building upp lib. #210

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

WenMeng-NOAA
Copy link
Collaborator

No description provided.

@WenMeng-NOAA WenMeng-NOAA requested a review from fossell November 2, 2020 17:32
Copy link
Contributor

@fossell fossell left a comment

Choose a reason for hiding this comment

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

This is official name change for GFS implementation of library, so it's ok with me to put this in develop. We will update other aspects in future. Note that UFS v2.0 (SRW) will keep nceppost as lib name for the upcoming release.

@WenMeng-NOAA
Copy link
Collaborator Author

@fossell Yes, upp lib is the official name for GFS V16 implementation. I would expect other changes e.g. unifying executable name
in the place in the future. Thanks!

@WenMeng-NOAA WenMeng-NOAA merged commit 855cae4 into NOAA-EMC:develop Nov 2, 2020
@aerorahul
Copy link
Contributor

This PR is going to break the usage of nceppost in projects that use it via CMake.

@WenMeng-NOAA
Copy link
Collaborator Author

@aerorahul Are you meaning we should keep in EMC_post/CMAKEKists.txt
project(
nceppost
VERSION ${pVersion}
LANGUAGES Fortran)

@aerorahul
Copy link
Contributor

This change will require downstream users to change to:
find_package(UPP)
and then to link with UPP::upp
If modules are used, the modulefile will need to be updated to point to UPP_ROOT instead of nceppost_ROOT.
I am not sure yet what other changes may be needed.

@fossell
Copy link
Contributor

fossell commented Nov 2, 2020

@aerorahul - These would be required for projects who use develop branch only or are doing a sync to develop. Would the preference for such a change be that there is a broad announcement to those projects of change? If so, how do we determine who is using the develop branch actively for their projects? What is your recommendation to make these types of changes in develop branch? We generally operate with the understanding that projects that require stable versions are doing so within a branch or fork, not from develop where things are changing more often. Please advise...

@WenMeng-NOAA
Copy link
Collaborator Author

@fossell and @aerorahul The intention of this PR is changing cmake scripts for building upp lib instead of nceppost lib at hpc-stack. I got some tweaking from a staff installing upp lib at hpc-stack. From my testing, the changes for nceppost into UPP will have no impacts on upp lib building under my account but not sure this is required by EIB installing under hpc-stack. I will check that.

@aerorahul
Copy link
Contributor

aerorahul commented Nov 2, 2020

As far as the ufs-weather-model is concerned, here is what we can do:

  1. EMC_post develop is tagged as UPP v10.0.0
  2. update hpc-stack to clone this UPP tag and build and install it.
  3. update ufs-weather-model CMakeLists.txt to find_package(UPP 10.0.0) and target_link_libraries(UPP::upp) instead of nceppost

However, I am not sure if the UPP v10.0.0 is going to be identical to the nceppost SHA currently used in the weather model (dceca26)

Atleast this way, the UFS is using the latest develop of UPP/EMC_post.

@WenMeng-NOAA
Copy link
Collaborator Author

@aerorahul this upp/10.0.0 is not identical to the dceca26 which is a old version for GFS V16.

@WenMeng-NOAA
Copy link
Collaborator Author

Just confirm that it is not necessary to change nceppost in EMC_post/CMakeLists.txt during installing upp/10.0.0 in hpc-stack. I may revert the change. Please let me know your comments @aerorahul and @fossell.

@aerorahul
Copy link
Contributor

changes in EMC_post/CMakeLists.txt have nothing to do with hpc-stack.

@junwang-noaa
Copy link
Contributor

junwang-noaa commented Nov 2, 2020 via email

@junwang-noaa
Copy link
Contributor

junwang-noaa commented Nov 2, 2020 via email

@WenMeng-NOAA
Copy link
Collaborator Author

@junwang-noaa So it looks EMC_post/CMakeList.txt should have

project(
upp
VERSION ${pVersion}
LANGUAGES Fortran)

Thanks for comments. I will add another change in the branch develop at UPP repos.

@WenMeng-NOAA WenMeng-NOAA deleted the post_cmake branch April 8, 2021 00:06
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.

4 participants