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

Add HIP support for HYPRE #658

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

Conversation

abisner
Copy link
Collaborator

@abisner abisner commented Aug 3, 2023

Added FindHYPRE cmake for autotools install in lieu of available CMake installation.

Uses pkgconfig instead in lieu of available CMake installation

@abisner abisner changed the title Draft: FindHYPRE came Draft: FindHYPRE make Aug 3, 2023
@abisner abisner changed the title Draft: FindHYPRE make Draft: FindHYPRE cmake Aug 3, 2023
@abisner abisner changed the title Draft: FindHYPRE cmake WIP: FindHYPRE cmake Aug 3, 2023
@abisner
Copy link
Collaborator Author

abisner commented Aug 3, 2023

This PR adds a FindHYPRE cmake to be used in the case of Kokkos HIP builds, in which there is currently no supported CMake installation method for hypre builds on AMD.

@streeve streeve changed the title WIP: FindHYPRE cmake WIP: FindHYPRE CMake (needed for HIP) Aug 3, 2023
cmake/FindHYPRE.cmake Outdated Show resolved Hide resolved
cmake/FindHYPRE.cmake Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
cmake/FindHYPRE.cmake Outdated Show resolved Hide resolved
@streeve streeve force-pushed the find-hypre-cmake branch 2 times, most recently from bcd4e05 to e5d1a62 Compare September 15, 2023 19:16
@streeve streeve changed the title WIP: FindHYPRE CMake (needed for HIP) Add HIP support for HYPRE Sep 15, 2023
@streeve streeve force-pushed the find-hypre-cmake branch 3 times, most recently from 3925163 to f22edeb Compare September 15, 2023 20:26
@streeve
Copy link
Member

streeve commented Sep 15, 2023

Okay @junghans failure here is finally just missing the right target "pkgconfig:PC_HYPRE" does not already exist.

CMakeLists.txt Outdated Show resolved Hide resolved
Co-authored-by: Christoph Junghans <[email protected]>
@streeve
Copy link
Member

streeve commented Sep 18, 2023

@junghans I tried some more in a container, but I don't see any pkg-config content from hypre anywhere.. If we point to that correctly I think it will finally work

@streeve streeve mentioned this pull request Aug 25, 2023
18 tasks
Cabana_add_dependency( PACKAGE HYPRE VERSION 2.22.1 )
if(Kokkos_ENABLE_HIP)
# FIXME: remove when hypre supports HIP CMake builds
pkg_check_modules(PC_HYPRE hypre REQUIRED IMPORTED_TARGET)
Copy link
Member

Choose a reason for hiding this comment

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

We need to add logic for Cabana_ENABLE_HYPRE here, too.

@streeve
Copy link
Member

streeve commented Oct 5, 2023

Now blocked by #697

@streeve
Copy link
Member

streeve commented Oct 8, 2024

Should be able to close/replace once https://github.com/hypre-space/hypre/tree/cmake-hip is merged @victorapm

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