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

Updates to allow GEOS to build without MKL #8

Merged
merged 6 commits into from
Sep 22, 2020

Conversation

mathomp4
Copy link
Member

@mathomp4 mathomp4 commented Jul 28, 2020

This set of PRs is to allow GEOS to build without MKL. Note that it currently does this by making RRTMGP unusable if MKL is not found. This is not ideal, but it's a first attempt.

Should be taken in concert with:
GEOS-ESM/GEOSgcm_GridComp#321
GEOS-ESM/ESMA_cmake#115

ETA: Turns out thanks to CMake knowledge of @tclune this is no longer true! Since each component specifies what they need, they are now independent!

mathomp4 added 2 commits June 10, 2020 16:47
This set of PRs is to allow GEOS to build without MKL. Note that it currently does this by making RRTMGP unusable if MKL is not found. This is not ideal, but it's a first attempt.
For unknown reasons, even though, with MKL loaded, MKL_LIBRARIES is the
same as LAPACK_LIBRARIES save for a `-lm -ldl`, the answers are
non-zero-diff.

So, if MKL_FOUND, use MKL_LIBRARIES to maintain zero-diff
@mathomp4 mathomp4 added the enhancement New feature or request label Jul 28, 2020
@mathomp4 mathomp4 requested review from tclune and a team July 28, 2020 16:57
@mathomp4 mathomp4 self-assigned this Jul 28, 2020
Copy link
Collaborator

@tclune tclune left a comment

Choose a reason for hiding this comment

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

BTW, CMake does have a notion of a target "alias" this might let you hide the MKL/LAPACK distinction in some instances.

@mathomp4
Copy link
Member Author

BTW, CMake does have a notion of a target "alias" this might let you hide the MKL/LAPACK distinction in some instances.

@tclune Really? This is still a draft until I can get @dr0cloud looped in, so I'm willing to learn!

@tclune
Copy link
Collaborator

tclune commented Jul 29, 2020

I have not played with it myself. Just seen it mentioned in the man pages occasionally e.g.:

https://cmake.org/cmake/help/latest/command/add_library.html#alias-libraries
https://stackoverflow.com/questions/38013451/using-alias-targets-in-cmake

@mathomp4 mathomp4 added 0 diff The changes in this pull request have verified to be zero-diff with the target branch. Contingent - DNA Do Not Approve (DNA). These changes are contingent on other PRs labels Sep 4, 2020
@mathomp4 mathomp4 marked this pull request as ready for review September 4, 2020 12:58
@mathomp4 mathomp4 requested a review from a team as a code owner September 4, 2020 12:58
tclune
tclune previously approved these changes Sep 4, 2020
bena-nasa
bena-nasa previously approved these changes Sep 4, 2020
@mathomp4 mathomp4 dismissed stale reviews from bena-nasa and tclune via be35dac September 4, 2020 17:36
tclune
tclune previously approved these changes Sep 4, 2020
@mathomp4 mathomp4 added 0 diff structural Structural changes to repository that are zero-diff and removed Contingent - DNA Do Not Approve (DNA). These changes are contingent on other PRs labels Sep 22, 2020
@tclune tclune merged commit 1d84126 into main Sep 22, 2020
@tclune tclune deleted the feature/mathomp4/mkl-is-optional branch September 22, 2020 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 diff structural Structural changes to repository that are zero-diff 0 diff The changes in this pull request have verified to be zero-diff with the target branch. enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants