Skip to content

[SuperLU_DIST] Ship per-integer-width header copies#13947

Open
ViralBShah wants to merge 1 commit into
masterfrom
vs/superlu-dist-per-width-headers
Open

[SuperLU_DIST] Ship per-integer-width header copies#13947
ViralBShah wants to merge 1 commit into
masterfrom
vs/superlu-dist-per-width-headers

Conversation

@ViralBShah

@ViralBShah ViralBShah commented Jun 11, 2026

Copy link
Copy Markdown
Member

Both the Int32 and Int64 builds install their headers into ${includedir}, so the second build overwrites the first's superlu_dist_config.h and the shipped XSDK_INDEX_SIZE only matches one of the two libraries (currently the Int64 one).

This keeps self-contained copies under include/superlu_dist_Int32/ and include/superlu_dist_Int64/ so consumers that must match a specific index width can point at the right set. The top-level headers stay as before for backward compatibility.

Motivation: PETSc (#13691) builds both Int64- and Int32-PetscInt variants and links the matching libsuperlu_dist_*; today its recipe has to stage sed-patched header copies to get a consistent int_t. With this change it can simply use --with-superlu_dist-include=${includedir}/superlu_dist_Int${N}.

🤖 Generated with Claude Code

Both the Int32 and Int64 builds install their headers into
${includedir}, so the second build overwrites the first's
superlu_dist_config.h and the shipped XSDK_INDEX_SIZE only matches one
of the two libraries.  Keep self-contained copies of the headers under
include/superlu_dist_Int32/ and include/superlu_dist_Int64/ so
consumers that must match a specific index width (e.g. PETSc, which
links libsuperlu_dist_Int32 for its 32-bit-PetscInt variants) can
point at the right set.  The ambiguous top-level headers stay as
before for backward compatibility.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ViralBShah ViralBShah force-pushed the vs/superlu-dist-per-width-headers branch from 57f609a to bcdbdf2 Compare June 11, 2026 14:50
@ViralBShah ViralBShah enabled auto-merge (squash) June 11, 2026 15:34
@ViralBShah ViralBShah closed this Jun 12, 2026
auto-merge was automatically disabled June 12, 2026 18:05

Pull request was closed

@ViralBShah ViralBShah reopened this Jun 12, 2026
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.

1 participant