Skip to content

Commit b694b24

Browse files
yewentao256LyrisZhong
authored andcommitted
[Refactor] Fix Compile Warning vllm-project#1444-D (vllm-project#21208)
Signed-off-by: yewentao256 <[email protected]>
1 parent 5b818c0 commit b694b24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csrc/moe/topk_softmax_kernels.cu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <ATen/cuda/CUDAContext.h>
2121
#include <c10/cuda/CUDAGuard.h>
2222
#include "../cuda_compat.h"
23+
#include <cuda/std/functional>
2324

2425
#ifndef USE_ROCM
2526
#include <cub/util_type.cuh>
@@ -62,7 +63,7 @@ __launch_bounds__(TPB) __global__
6263

6364
const int thread_row_offset = blockIdx.x * num_cols;
6465

65-
cub::Sum sum;
66+
cuda::std::plus<float> sum;
6667
float threadData(-FLT_MAX);
6768

6869
// Don't touch finished rows.

0 commit comments

Comments
 (0)