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 fc25da1 commit 12c81d4Copy full SHA for 12c81d4
src/impl/KokkosComm_types.hpp
@@ -25,10 +25,7 @@ template <typename Scalar>
25
MPI_Datatype mpi_type() {
26
using T = std::decay_t<Scalar>;
27
28
- if constexpr (std::is_same_v<T, std::byte>)
29
- return MPI_BYTE;
30
-
31
- else if constexpr (std::is_same_v<T, char>)
+ if constexpr (std::is_same_v<T, char>)
32
return MPI_CHAR;
33
else if constexpr (std::is_same_v<T, unsigned char>)
34
return MPI_UNSIGNED_CHAR;
@@ -99,10 +96,8 @@ MPI_Datatype mpi_type() {
99
96
else if constexpr (std::is_same_v<T, Kokkos::complex<double>>)
100
97
return MPI_DOUBLE_COMPLEX;
101
98
102
- else {
103
- static_assert(std::is_void_v<T>, "mpi_type not implemented");
104
- return MPI_CHAR; // unreachable
105
- }
+ else
+ return MPI_BYTE;
106
}
107
108
template <typename Scalar>
0 commit comments