CMakeLists.txt 468 字节
Newer Older
1 2
add_subdirectory(dynload)

W
Wilber 已提交
3
add_subdirectory(cpu)
4

5 6
add_subdirectory(custom)

W
Wilber 已提交
7 8 9 10
if(WITH_GPU OR WITH_ROCM)
  add_subdirectory(gpu)
endif()

W
Wilber 已提交
11 12 13 14
if(WITH_XPU)
  add_subdirectory(xpu)
endif()

15
cc_library(phi_context SRCS all_context.cc DEPS device_context cpu_context)
W
Wilber 已提交
16 17

if(WITH_XPU)
18
  add_dependencies(phi_context xpu_context)
W
Wilber 已提交
19
endif()
W
Wilber 已提交
20 21

if(WITH_GPU)
22
  add_dependencies(phi_context gpu_context)
W
Wilber 已提交
23
endif()
24 25

if(WITH_CUSTOM_DEVICE)
26
  add_dependencies(phi_context custom_context)
27
endif()