From b7ee3fdad30d00d9aaa31be04315838c7e2c24ac Mon Sep 17 00:00:00 2001 From: Jiawei Li Date: Wed, 10 Sep 2025 17:19:39 +0800 Subject: [PATCH] [Code clean] Remove the unnecessary code (#2815) **Background:** A dynamic library named vllm_ascend_C.so will be generated when compiling vLLM-Ascend, so when import vllm_ascend.vllm_ascend_C in python, the interperter will search vllm_ascend_C.so and try to find a external symbol named PyInit_vllm_ascend_C which is provided in csrc/camem_allocator.cpp. **Conclusion:** The PyInit__C is redundent. - vLLM version: v0.10.1.1 - vLLM main: https://github.com/vllm-project/vllm/commit/717fc00e98c18d183f9141393b4185ddfb6606b3 Signed-off-by: FFFrog --- csrc/torch_binding.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/csrc/torch_binding.cpp b/csrc/torch_binding.cpp index 375ef59..1291a39 100644 --- a/csrc/torch_binding.cpp +++ b/csrc/torch_binding.cpp @@ -20,7 +20,6 @@ #include #include #include -#include #include "acl/acl.h" #include "ops.h" #include "utils.h" @@ -424,5 +423,3 @@ TORCH_LIBRARY_EXPAND(_C, ops) " int slice_offset, int slice_size) -> Tensor"); ops.impl("sgmv_expand", torch::kPrivateUse1, &vllm_ascend::sgmv_expand); } - -REGISTER_EXTENSION(_C)