[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>
This commit is contained in:
1 parent
d5f72835e6
commit
51da5ea543
1 file changed
+3
@@ -81,7 +81,10 @@ if (BUILD_OPEN_PROJECT)
|
||||
target_include_directories(opapi PRIVATE
|
||||
$<BUILD_INTERFACE:${ASCEND_CANN_PACKAGE_PATH}/include>
|
||||
$<BUILD_INTERFACE:${ASCEND_CANN_PACKAGE_PATH}/include/aclnn>
|
||||
# For CANN 8.3
|
||||
$<BUILD_INTERFACE:${ASCEND_CANN_PACKAGE_PATH}/include/aclnn_kernels>
|
||||
# For CANN 8.5 and later
|
||||
$<BUILD_INTERFACE:${ASCEND_CANN_PACKAGE_PATH}/${CMAKE_SYSTEM_PROCESSOR}-linux/pkg_inc>
|
||||
)
|
||||
target_compile_options(opapi PRIVATE
|
||||
-Werror=format
|
||||
|
||||
Reference in new issue
Block a user