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
36cc3ffd
"examples/sampling/vscode:/vscode.git/clone" did not exist on "9d7fe9d3af82db8fed1e2b02fac8a6d58ed82a02"
Unverified
Commit
36cc3ffd
authored
Jul 03, 2025
by
Chunyuan WU
Committed by
GitHub
Jul 02, 2025
Browse files
[CPU] [sgl-kernel] set dispatch key of initialize to CatchAll (#7734)
parent
1bebd315
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sgl-kernel/csrc/cpu/torch_extension_cpu.cpp
sgl-kernel/csrc/cpu/torch_extension_cpu.cpp
+1
-1
No files found.
sgl-kernel/csrc/cpu/torch_extension_cpu.cpp
View file @
36cc3ffd
...
@@ -342,7 +342,6 @@ TORCH_LIBRARY_FRAGMENT(sgl_kernel, m) {
...
@@ -342,7 +342,6 @@ TORCH_LIBRARY_FRAGMENT(sgl_kernel, m) {
// all reduce
// all reduce
m
.
def
(
"initialize(int size, int rank) -> ()"
);
m
.
def
(
"initialize(int size, int rank) -> ()"
);
m
.
impl
(
"initialize"
,
torch
::
kCPU
,
&
initialize
);
m
.
def
(
"shm_allreduce(Tensor data, int reduce_op) -> ()"
);
m
.
def
(
"shm_allreduce(Tensor data, int reduce_op) -> ()"
);
m
.
impl
(
"shm_allreduce"
,
torch
::
kCPU
,
&
shm_allreduce
);
m
.
impl
(
"shm_allreduce"
,
torch
::
kCPU
,
&
shm_allreduce
);
m
.
def
(
"shm_allgather(Tensor data, int dim) -> Tensor"
);
m
.
def
(
"shm_allgather(Tensor data, int dim) -> Tensor"
);
...
@@ -360,6 +359,7 @@ TORCH_LIBRARY_FRAGMENT(sgl_kernel, m) {
...
@@ -360,6 +359,7 @@ TORCH_LIBRARY_FRAGMENT(sgl_kernel, m) {
TORCH_LIBRARY_IMPL
(
sgl_kernel
,
CatchAll
,
m
)
{
TORCH_LIBRARY_IMPL
(
sgl_kernel
,
CatchAll
,
m
)
{
m
.
impl
(
"init_cpu_threads_env"
,
init_cpu_threads_env
);
m
.
impl
(
"init_cpu_threads_env"
,
init_cpu_threads_env
);
m
.
impl
(
"initialize"
,
&
initialize
);
}
}
REGISTER_EXTENSION
(
common_ops
)
REGISTER_EXTENSION
(
common_ops
)
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