From fbfdea5148897561d3b668dcdfd29adaee1038e4 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Wed, 20 Jul 2022 07:49:26 -0500 Subject: [PATCH] add eigen3 dependency for phi_backends (#44479) --- paddle/phi/backends/CMakeLists.txt | 3 ++- paddle/phi/backends/custom/CMakeLists.txt | 18 ------------------ 2 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 paddle/phi/backends/custom/CMakeLists.txt diff --git a/paddle/phi/backends/CMakeLists.txt b/paddle/phi/backends/CMakeLists.txt index a2d4b1deef6..de4d82b4613 100644 --- a/paddle/phi/backends/CMakeLists.txt +++ b/paddle/phi/backends/CMakeLists.txt @@ -1,7 +1,7 @@ add_subdirectory(dynload) set(BACKENDS_SRCS all_context.cc cpu/cpu_context.cc) -set(BACKENDS_DEPS enforce place flags) +set(BACKENDS_DEPS enforce place flags eigen3) if(WITH_GPU OR WITH_ROCM) list(APPEND BACKENDS_SRCS gpu/gpu_context.cc gpu/gpu_info.cc @@ -40,6 +40,7 @@ endif() add_library(phi_backends "${BACKENDS_SRCS}") target_link_libraries(phi_backends ${BACKENDS_DEPS}) +add_dependencies(phi_backends eigen3) # for inference library get_property(phi_modules GLOBAL PROPERTY PHI_MODULES) diff --git a/paddle/phi/backends/custom/CMakeLists.txt b/paddle/phi/backends/custom/CMakeLists.txt deleted file mode 100644 index ceff429f8e5..00000000000 --- a/paddle/phi/backends/custom/CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ -if(WITH_CUSTOM_DEVICE) - cc_library( - custom_context - SRCS custom_context.cc - DEPS phi_device_context device_manager) - cc_library( - custom_device - SRCS custom_device.cc - DEPS device_base device_context) - cc_test( - custom_device_test - SRCS custom_device_test.cc - DEPS device_manager device_context) - cc_test( - capi_test - SRCS capi_test.cc - DEPS phi_capi) -endif() -- GitLab