Merge pull request #96 from songhexiang/adjust_kNumThreads_of_notify_dispatch

Adjust kNumThreads of notify_dispatch
This commit is contained in:
Chenggang Zhao 2025-03-28 16:42:21 +08:00 committed by GitHub
commit dcf46f1c26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -428,7 +428,7 @@ void notify_dispatch(const int* num_tokens_per_rank, int* moe_recv_counter_mappe
buffer_ptrs, task_fifo_ptrs, head, rank, \
cpu_rdma_team); } break
constexpr int kNumThreads = 256;
constexpr int kNumThreads = std::max(256, 32 * num_channels);
const auto num_rdma_ranks = num_ranks / NUM_MAX_NVL_PEERS;
// Get clean meta