[Mlir-commits] [mlir] [mlir][mpi] Lowering Mpi To LLVM (PR #127053)
Frank Schlimbach
llvmlistbot at llvm.org
Tue Feb 18 03:03:01 PST 2025
================
@@ -0,0 +1,157 @@
+#define MPICH_SKIP_MPICXX 1
+#define OMPI_SKIP_MPICXX 1
+#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
+#include "mlir/Dialect/MPI/IR/MPI.h"
+#include "mlir/Transforms/DialectConversion.h"
+
+// skip if no MPI C header was found
+#ifdef FOUND_MPI_C_HEADER
+#include <mpi.h>
+#else // not FOUND_MPI_C_HEADER
+#include "mpi_fallback.h"
+#endif // FOUND_MPI_C_HEADER
----------------
fschlimb wrote:
I am not aware of a tangible plan. Probably mostly because no concrete suggestion was made yet.
I'd be happy to work with you on that, but I suggest doing this in a separate PR.
Notice: Even though not ideal, the current default/fallback approach works for all the MPICH compatible MPI implementations (https://www.mpich.org/abi/).
https://github.com/llvm/llvm-project/pull/127053
More information about the Mlir-commits
mailing list