diff --git a/paddle/phi/kernels/CMakeLists.txt b/paddle/phi/kernels/CMakeLists.txt index 1611c89667cc10857c5bc399125360fa9fbaf325..af6cfb8812de833b1ba66010170fdf072466897e 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()