We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 587dc7d commit 3e18c88Copy full SHA for 3e18c88
src/KokkosComm/mpi/impl/types.hpp
@@ -82,10 +82,17 @@ MPI_Datatype mpi_type() {
82
return MPI_LONG_DOUBLE;
83
84
else if constexpr (std::is_same_v<T, Kokkos::complex<float>>)
85
+#if defined(KOKKOSCOMM_IMPL_MPI_IS_OPENMPI)
86
+ return MPI_CXX_COMPLEX;
87
+#else
88
return MPI_COMPLEX;
89
+#endif
90
else if constexpr (std::is_same_v<T, Kokkos::complex<double>>)
91
92
+ return MPI_CXX_DOUBLE_COMPLEX;
93
94
return MPI_DOUBLE_COMPLEX;
-
95
96
else {
97
static_assert(std::is_void_v<T>, "mpi_type not implemented");
98
return MPI_CHAR; // unreachable
0 commit comments