Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
9b9e8253
"vscode:/vscode.git/clone" did not exist on "14d88497cac561e10f2daa28c3f46f7fc424ddff"
Unverified
Commit
9b9e8253
authored
Jul 31, 2025
by
Qi Yuhang
Committed by
GitHub
Jul 30, 2025
Browse files
[Fix]Fix index oob in get_group_gemm_starts kernel. (#8564)
parent
66a398f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sgl-kernel/csrc/moe/cutlass_moe_helper.cu
sgl-kernel/csrc/moe/cutlass_moe_helper.cu
+6
-6
No files found.
sgl-kernel/csrc/moe/cutlass_moe_helper.cu
View file @
9b9e8253
...
...
@@ -31,7 +31,7 @@ __global__ void get_group_gemm_starts(
int
*
problem_sizes
,
int
*
problem_sizes_transpose
,
bool
transpose
=
false
)
{
int
expert_id
=
threadIdx
.
x
;
int
64_t
expert_id
=
static_cast
<
int64_t
>
(
threadIdx
.
x
)
;
if
(
expert_id
>=
gridDim
.
x
*
blockDim
.
x
)
{
return
;
...
...
@@ -46,11 +46,11 @@ __global__ void get_group_gemm_starts(
problem_sizes_transpose
[
expert_id
*
3
+
2
]
=
k
;
}
int
32
_t
expert_offset
=
expert_offsets
[
expert_id
];
int
a_stride
=
0
;
int
b_stride
=
0
;
int
a_scale_stride
=
0
;
int
b_scale_stride
=
0
;
int
64
_t
expert_offset
=
static_cast
<
int64_t
>
(
expert_offsets
[
expert_id
]
)
;
int
64_t
a_stride
=
0
;
int
64_t
b_stride
=
0
;
int
64_t
a_scale_stride
=
0
;
int
64_t
b_scale_stride
=
0
;
if
(
!
transpose
)
{
a_stride
=
expert_offset
*
k
;
b_stride
=
expert_id
*
k
*
n
;
...
...
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