Skip to content

Commit

Permalink
[PTEN] cpu_context add eigen deps (PaddlePaddle#39234)
Browse files Browse the repository at this point in the history
* add eigen deps

* update
  • Loading branch information
jiweibo authored Jan 26, 2022
1 parent 5df7836 commit bd5c962
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion paddle/fluid/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ cc_library(cudnn_workspace_helper SRCS cudnn_workspace_helper.cc DEPS boost)
# avoiding cycle dependencies
cc_library(device_context SRCS device_context.cc init.cc DEPS simple_threadpool malloc xxhash ${STREAM_CALLBACK_DEPS}
place pten_place eigen3 stringpiece cpu_helper cpu_info framework_proto ${IPU_CTX_DEPS} ${GPU_CTX_DEPS} ${NPU_CTX_DEPS} ${MKLDNN_CTX_DEPS}
${dgc_deps} dlpack cudnn_workspace_helper ${XPU_CTX_DEPS} ${MLU_CTX_DEPS} cpu_context)
${dgc_deps} dlpack cudnn_workspace_helper ${XPU_CTX_DEPS} ${MLU_CTX_DEPS} eigen3 cpu_context)
if(WITH_XPU)
target_link_libraries(device_context xpu_context)
endif()
Expand Down
4 changes: 2 additions & 2 deletions paddle/pten/backends/cpu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if(WITH_MKLDNN)
# TODO(wilber): support mkldnn context.
cc_library(cpu_context SRCS cpu_context.cc DEPS pten_device_context mkldnn)
cc_library(cpu_context SRCS cpu_context.cc DEPS pten_device_context mkldnn eigen3)
else()
cc_library(cpu_context SRCS cpu_context.cc DEPS pten_device_context)
cc_library(cpu_context SRCS cpu_context.cc DEPS pten_device_context eigen3)
endif()

0 comments on commit bd5c962

Please sign in to comment.