Skip to content

Conversation

@WeiqunZhang
Copy link
Member

For MPICH < 4, MPIX_Query_cuda_support will trigger an assertion error if its call to PMPIX_GPU_query_support returns an error code. Here, we work around it by calling MPIX_GPU_query_support directly. If it returns an error code, it is treated as not supporting CUDA.

Close #4820

For MPICH < 4, MPIX_Query_cuda_support will trigger an assertion error if
its call to PMPIX_GPU_query_support returns an error code. Here, we work
around it by calling MPIX_GPU_query_support directly. If it returns an error
code, it is treated as not supporting CUDA.
@WeiqunZhang WeiqunZhang requested a review from ax3l December 1, 2025 19:33
@WeiqunZhang WeiqunZhang marked this pull request as ready for review December 3, 2025 21:55
@WeiqunZhang WeiqunZhang requested a review from atmyers December 3, 2025 21:56
@WeiqunZhang WeiqunZhang merged commit 26cd0aa into AMReX-Codes:development Dec 3, 2025
73 checks passed
@WeiqunZhang WeiqunZhang deleted the mpich_mpix_query branch December 3, 2025 23:35
Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

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

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MPICH <4: Broken MPIX_Query_cuda_support

3 participants