Skip to content

Commit

Permalink
fix: remove static_assert from unreachable path
Browse files Browse the repository at this point in the history
  • Loading branch information
dssgabriel committed Apr 11, 2024
1 parent 8f9ceed commit 68fee65
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/KokkosComm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ Req isend(const ExecSpace &space, const SendView &sv, int dest, int tag,
return Impl::irsend(space, sv, dest, tag, comm);
} else if constexpr (CommMode == Mode::Synchronous) {
return Impl::issend(space, sv, dest, tag, comm);
} else { // Is this needed? Do we remove the `else` altogether?
static_assert(false, "unreachable");
}
}

Expand All @@ -53,8 +51,6 @@ void send(const ExecSpace &space, const SendView &sv, int dest, int tag,
return Impl::rsend(space, sv, dest, tag, comm);
} else if constexpr (CommMode == Mode::Synchronous) {
return Impl::ssend(space, sv, dest, tag, comm);
} else { // Is this needed? Do we remove the `else` altogether?
static_assert(false, "unreachable");
}
}

Expand Down

0 comments on commit 68fee65

Please sign in to comment.