Skip to content

Commit

Permalink
🔥 Remove static assertion for 32b systems
Browse files Browse the repository at this point in the history
  • Loading branch information
astariul committed Jun 26, 2024
1 parent 389b48c commit 4b2b1f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collective/communicator-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ inline void Allreduce(uint64_t *send_receive_buffer, size_t count) {
template <Operation op, typename T,
typename = std::enable_if_t<std::is_same<size_t, T>{} && !std::is_same<uint64_t, T>{}> >
inline void Allreduce(T *send_receive_buffer, size_t count) {
static_assert(sizeof(T) == sizeof(uint64_t), "");
// static_assert(sizeof(T) == sizeof(uint64_t), "");
Communicator::Get()->AllReduce(send_receive_buffer, count, DataType::kUInt64, op);
}

Expand Down

0 comments on commit 4b2b1f9

Please sign in to comment.