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

CMake build improvements #1167

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

helloworld922
Copy link
Contributor

Made it easier and less error prone to change configurations in CMake.

  • Get rid of HYPRE_INSTALL_PREFIX, use CMAKE_INSTALL_PREFIX only. This
    follows cmake common practices and allows changing the install prefix
    in a single place.
  • Get rid of HYPRE_BUILD_TYPE, use CMAKE_BUILD_TYPE only. This
    follows cmake common practices and allows changing the build type
    in a single place.
  • Ensure that certain internal cache flags are toggled on/off as
    needed. These probably shouldn't be cached at all, however I left them
    cached. Specifically this ensures that HYPRE_USING_DEVICE_MEMORY and
    HYPRE_USING_DEVICE_MEMORY cannot be simultaneously enabled.

helloworld922 and others added 4 commits September 26, 2024 20:13
rocm 6 seems to return this type for host memory allocated outside of rocm
- Get rid of HYPRE_INSTALL_PREFIX, use CMAKE_INSTALL_PREFIX only. This
follows cmake common practices and allows changing the install prefix
in a single place.
- Get rid of HYPRE_BUILD_TYPE, use CMAKE_BUILD_TYPE only. This
follows cmake common practices and allows changing the build type
in a single place.
- Ensure that certain internal cache flags are toggled on/off as
needed. These probably shouldn't be cached at all, however I left them
cached. Specifically this ensures that HYPRE_USING_DEVICE_MEMORY and
HYPRE_USING_DEVICE_MEMORY cannot be simultaneously enabled.
@ZedThree
Copy link
Contributor

ZedThree commented Nov 7, 2024

There's also the conventional (and built in!) BUILD_SHARED_LIBS which is clobbered by HYPRE_ENABLE_SHARED

@victorapm victorapm self-assigned this Nov 8, 2024
@victorapm
Copy link
Contributor

Hi Andrew, thank you for the contribution! I included this on #1181

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.

3 participants