File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,7 @@ template <typename Scalar>
25
25
MPI_Datatype mpi_type () {
26
26
using T = std::decay_t <Scalar>;
27
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 >)
28
+ if constexpr (std::is_same_v<T, char >)
32
29
return MPI_CHAR;
33
30
else if constexpr (std::is_same_v<T, unsigned char >)
34
31
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
- }
99
+ else
100
+ return MPI_BYTE;
106
101
}
107
102
108
103
template <typename Scalar>
You can’t perform that action at this time.
0 commit comments