From 6132476d1942728a5c088de8c74412bceef30974 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Wed, 29 Jun 2022 13:31:17 +0800 Subject: [PATCH] add kernel_decalre for xpu kp kernels (#43920) --- paddle/phi/kernels/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/phi/kernels/CMakeLists.txt b/paddle/phi/kernels/CMakeLists.txt index 1611c89667c..af6cfb8812d 100644 --- a/paddle/phi/kernels/CMakeLists.txt +++ b/paddle/phi/kernels/CMakeLists.txt @@ -145,7 +145,8 @@ if(WITH_XPU) else() add_library(phi_xpu ${kernel_xpu}) endif() - kernel_declare(${kernel_xpu}) + kernel_declare("${kernel_xpu}") + kernel_declare("${kernel_xpu_kps}") target_link_libraries(phi_xpu ${COMMON_KERNEL_DEPS}) set_property(GLOBAL PROPERTY PHI_KERNELS phi_cpu phi_xpu) endif() -- GitLab