Skip to content

Conversation

@hzhou
Copy link
Contributor

@hzhou hzhou commented Feb 6, 2026

Pull Request Description

Don't assume the complex types are always available in CXX.

Potentially fixes #7719

[skip warnings]

Author Checklist

  • Provide Description
    Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
  • Commits Follow Good Practice
    Commits are self-contained and do not do two things at once.
    Commit message is of the form: module: short description
    Commit message explains what's in the commit.
  • Passes All Tests
    Whitespace checker. Warnings test. Additional tests via comments.
  • Contribution Agreement
    For non-Argonne authors, check contribution agreement.
    If necessary, request an explicit comment from your companies PR approval manager.

if test "$len" = 64 ; then
# long double is an alias of double, e.g. arm64
internal_type=MPIR_COMPLEX$len
if test "$ac_cv_sizeof_Complex" -gt 0 ; then
Copy link
Contributor

Choose a reason for hiding this comment

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

@hzhou Are you using the right comparison operator? I'm not great at shell programming, but I would have expected to see -eq here.

Suggested change
if test "$ac_cv_sizeof_Complex" -gt 0 ; then
if test "$ac_cv_sizeof_Complex" -eq 0 ; then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I swapped the logic as I copy/paste :( . Thanks for noticing!

@hzhou
Copy link
Contributor Author

hzhou commented Feb 11, 2026

test:mpich/ch3/most
test:mpich/ch4/most

Don't assume the complex types are always available in CXX.
@hzhou hzhou merged commit 9e470ab into pmodels:main Feb 12, 2026
4 checks passed
@hzhou hzhou deleted the 2602_cxx_complex branch February 12, 2026 00:46
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.

Cannot build the MPI ABI on macOS 26.2 arm64

3 participants