-
Notifications
You must be signed in to change notification settings - Fork 53
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
Build system updates #151
Build system updates #151
Conversation
sebastiangrimberg
commented
Dec 13, 2023
•
edited
Loading
edited
- Update MFEM and libCEED dependencies
- Update all other dependency versions
- Forward linker flags to dependency builds
- Miscellaneous updates in preparation for GPU builds (Configure and pass GPU options to dependencies, add Slate and MAGMA dependencies for GPU builds, Hypre use GNU Make build system instead of CMake for HIP support)
036e6fb
to
7c34cce
Compare
7c34cce
to
a369a6a
Compare
a369a6a
to
6575381
Compare
6575381
to
0f520fb
Compare
This PR goes alongside the documentation updates in #146 (mainly the updated CMake requirement to v3.21, for upcoming HIP support). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Built locally with all PALACE_WITH_XXX
options turned on (aside from PALACE_WITH_64BIT_BLAS_INT
), and examples tests all pass. MAGMA turns itself off based on lack of CUDA/HIP, but that's as expected.
set(LIBCEED_OPT_FLAGS "${LIBCEED_OPT_FLAGS} -isystem ${CUDA_DIR}/include") | ||
endif() | ||
if(PALACE_WITH_HIP) | ||
set(LIBCEED_OPT_FLAGS "${LIBCEED_OPT_FLAGS} -isystem ${ROCM_DIR}/include") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ROCM_DIR
? Just pattern matching here relative to CUDA_DIR
above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, using the same naming as https://github.com/CEED/libCEED/blob/main/Makefile. The missing piece that will come with GPU builds (along with the PALACE_WITH_CUDA
and PALACE_WITH_HIP
options) is to define CUDA_DIR
and ROCM_DIR
based on the paths located by CMake.