From 51da5ea5438749fa057a7bb60977750e3ac22392 Mon Sep 17 00:00:00 2001 From: Fager10086 <77871921+Fager10086@users.noreply.github.com> Date: Mon, 29 Dec 2025 20:34:53 +0800 Subject: [PATCH] [Kernel]update csrc cmakelist for open-source cann (#5458) ### What this PR does / why we need it? Using open-source CANN, installation errors may occur due to changes in the path of the aclnn directory. So we add the header file. - Fixes # --> Using open-source CANN, installation errors may occur due to changes in the path of the base/dlog_pub.h for aclnn. ### Does this PR introduce _any_ user-facing change? Does not. ### How was this patch tested? - vLLM version: v0.13.0 - vLLM main: https://github.com/vllm-project/vllm/commit/5326c89803566a131c928f7fdd2100b75c981a42 Signed-off-by: Rifa <865071616@qq.com> --- csrc/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/csrc/CMakeLists.txt b/csrc/CMakeLists.txt index 29c654c0..542e87f2 100644 --- a/csrc/CMakeLists.txt +++ b/csrc/CMakeLists.txt @@ -81,7 +81,10 @@ if (BUILD_OPEN_PROJECT) target_include_directories(opapi PRIVATE $ $ + # For CANN 8.3 $ + # For CANN 8.5 and later + $ ) target_compile_options(opapi PRIVATE -Werror=format