CMakeLists.txt 485 字节
Newer Older
1 2 3 4
if(NOT WITH_XPU)
  return()
endif()

5 6 7 8 9 10 11 12
set(XPU_CTX_DEPS
    xpulib
    ssl
    crypto
    rt
    z
    resolv
    dl)
13

14 15 16 17 18 19 20 21 22
cc_library(
  xpu_info
  SRCS xpu_info.cc
  DEPS gflags
       glog
       enforce
       xpulib
       device_context
       place
23
       phi_backends)
24 25 26 27 28 29 30 31
cc_library(
  xpu_op_list
  SRCS xpu_op_list.cc
  DEPS gflags glog enforce xpulib device_context op_kernel_type)
cc_library(
  xpu_resource_pool
  SRCS xpu_resource_pool.cc
  DEPS xpu_info)
32 33

add_subdirectory(tests)