Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
61249b17
Unverified
Commit
61249b17
authored
Dec 11, 2025
by
Wentao Ye
Committed by
GitHub
Dec 11, 2025
Browse files
[Refactor] Remove useless syncwarp (#30510)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
c817b141
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
csrc/moe/grouped_topk_kernels.cu
csrc/moe/grouped_topk_kernels.cu
+0
-5
No files found.
csrc/moe/grouped_topk_kernels.cu
View file @
61249b17
...
...
@@ -481,8 +481,6 @@ __device__ void topk_with_k2(T* output, T const* input, T const* bias,
largest
=
value
;
}
}
__syncwarp
();
// Ensure all threads have valid data before reduction
// Get the top2 warpwise
T
max1
=
cg
::
reduce
(
tile
,
largest
,
cg
::
greater
<
T
>
());
...
...
@@ -589,7 +587,6 @@ __global__ void group_idx_and_topk_idx_kernel(
int
pre_count_equal_to_top_value
=
0
;
// Use loop to find the largset top_group
while
(
count_equal_to_top_value
<
target_num_min
)
{
__syncwarp
();
// Ensure all threads have valid data before reduction
topk_group_value
=
cg
::
reduce
(
tile
,
value
,
cg
::
greater
<
T
>
());
if
(
value
==
topk_group_value
)
{
value
=
neg_inf
<
T
>
();
...
...
@@ -644,10 +641,8 @@ __global__ void group_idx_and_topk_idx_kernel(
}
}
queue
.
done
();
__syncwarp
();
// Get the topk_idx
queue
.
dumpIdx
(
s_topk_idx
);
__syncwarp
();
}
// Load the valid score value
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment