Skip to content

Fix ButterflyPACK superbuild and bump to v4.1.0#667

Draft
hughcars wants to merge 2 commits intomainfrom
hughcars/butterflypack-cmake-buildfix
Draft

Fix ButterflyPACK superbuild and bump to v4.1.0#667
hughcars wants to merge 2 commits intomainfrom
hughcars/butterflypack-cmake-buildfix

Conversation

@hughcars
Copy link
Collaborator

@hughcars hughcars commented Mar 11, 2026

The ButterflyPACK patch fails to apply because the diff context targeted a stale line number from an older commit.

This bumps ButterflyPACK to the v4.1.0 tagged release and regenerates the patch to fix build issues exposed by the upgrade:

  • Regenerate patch_build.diff for v4.1.0 context
  • Set cmake_minimum_required to 3.5...4.0 for CMake 4.x compatibility
  • Add HOST_NAME_MAX portability define for macOS in CPPWrapper.cpp
  • Guard unguarded omp_get_wtime()/omp_get_thread_num() calls in BPACK_factor.f90 with #ifdef HAVE_OPENMP so builds with PALACE_WITH_OPENMP=OFF compile correctly

Also enables ButterflyPACK in the CI coverage build (gcc/openmpi/strumpack) to prevent future bitrot.

Fixes #663

@hughcars hughcars force-pushed the hughcars/butterflypack-cmake-buildfix branch 3 times, most recently from 42eddeb to c3f96c0 Compare March 11, 2026 21:40
The ButterflyPACK patch failed to apply because the diff context
targeted a stale line number from an older commit. This updates
ButterflyPACK to v4.1.0 and fixes three build issues exposed by the
upgrade:

- Regenerate patch_build.diff for v4.1.0 line numbers
- Set cmake_minimum_required to 3.5...4.0 for CMake 4.x compat
- Add HOST_NAME_MAX portability define for macOS in CPPWrapper.cpp
- Guard unguarded omp_get_wtime()/omp_get_thread_num() calls in
  BPACK_factor.f90 with #ifdef HAVE_OPENMP

Closes #663
Add ButterflyPACK to the STRUMPACK coverage build so the superbuild
patch is tested in CI.
@hughcars hughcars force-pushed the hughcars/butterflypack-cmake-buildfix branch from c3f96c0 to 740536e Compare March 16, 2026 22:31
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.

Error when buildin with ButterflyPACK

1 participant