[BugFix] skip combo kernel on cpu (#29129)
Signed-off-by: Boyuan Feng <boyuan@meta.com>
This commit is contained in:
@@ -664,6 +664,8 @@ class CompilationConfig:
|
|||||||
is_torch_equal_or_newer("2.9.0.dev")
|
is_torch_equal_or_newer("2.9.0.dev")
|
||||||
and "combo_kernels" not in self.inductor_compile_config
|
and "combo_kernels" not in self.inductor_compile_config
|
||||||
and "benchmark_combo_kernel" not in self.inductor_compile_config
|
and "benchmark_combo_kernel" not in self.inductor_compile_config
|
||||||
|
# (fixme @boyuan) combo kernel does not support cpu yet.
|
||||||
|
and not current_platform.is_cpu()
|
||||||
):
|
):
|
||||||
# use horizontal fusion, which is useful for fusing qk-norm and
|
# use horizontal fusion, which is useful for fusing qk-norm and
|
||||||
# qk-rope when query and key have different shapes.
|
# qk-rope when query and key have different shapes.
|
||||||
|
|||||||
Reference in New Issue
Block a user