CMakeLists.txt 492 字节
Newer Older
C
Chen Weihang 已提交
1 2 3 4 5
# kernel primitive api
add_subdirectory(primitive)
# pten hybird functors and functions called by kernels
add_subdirectory(hybird)

6 7
add_subdirectory(cpu)
if(WITH_GPU OR WITH_ROCM)
C
Chen Weihang 已提交
8
  # NOTE(chenweihang): if hip can split from cuda impl, we should add hip dir
9 10 11
  add_subdirectory(cuda)
endif()
if(WITH_MKLDNN)
C
Chen Weihang 已提交
12 13
  # mkldnn will be deprecated and use the new name dnnl
  add_subdirectory(dnnl)
14 15 16 17 18 19 20
endif()
if(WITH_ASCEND_CL)
  add_subdirectory(npu)
endif()
if(WITH_XPU)
  add_subdirectory(xpu)
endif()