Skip to content

Conversation

@romerojosh
Copy link
Collaborator

Reusing an idea from another library I maintain (see: NVIDIA/TorchFort#81).

This PR adds a cuDecomp initialization function (cudecompInit_F) in C/C++ that takes an MPI_Fint for the MPI communicator. The reasoning for this is that MPI_Comm is not consistently defined across MPI implementations and introduces ABI compatibility issues.

These new functions also enable us to simplify the current Fortran MPI communicator handling in our interfaces, removing any need to convert Fortran MPI communicators to their C counterparts. A secondary benefit is that this also removes all the special case handling for MPICH, which does not have a MPI_Comm_f2c function available.

…mplify Fortran interfaces.

Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
@romerojosh
Copy link
Collaborator Author

/build

@github-actions
Copy link

🚀 Build workflow triggered! View run

@github-actions
Copy link

✅ Build workflow passed! View run

@romerojosh romerojosh merged commit c4ae89f into main Sep 25, 2025
4 checks passed
@romerojosh romerojosh deleted the mpi_comm_f_update branch September 25, 2025 22:08
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.

2 participants