CMakeLists.txt 952 字节
Newer Older
C
Chen Weihang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
# kernel primitive api
add_subdirectory(primitive)
# pten hybird functors and functions called by kernels
add_subdirectory(hybird)

# pten kernels for different backends
# NOTE(chenweihang): We need to increase the compilation option of WITH_EIGEN,
# which will support splitting eigen at compile time on demand in the future
add_subdirectory(eigen)
# NOTE(chenweihang): We need to increase the compilation option of WITH_BLAS,
# which will support splitting eigen at compile time on demand in the future,
# and if necessary, blas can be split into openblas and cublas
add_subdirectory(blas)
14 15
add_subdirectory(cpu)
if(WITH_GPU OR WITH_ROCM)
C
Chen Weihang 已提交
16
  # NOTE(chenweihang): if hip can split from cuda impl, we should add hip dir
17 18 19
  add_subdirectory(cuda)
endif()
if(WITH_MKLDNN)
C
Chen Weihang 已提交
20 21
  # mkldnn will be deprecated and use the new name dnnl
  add_subdirectory(dnnl)
22 23 24 25 26 27 28
endif()
if(WITH_ASCEND_CL)
  add_subdirectory(npu)
endif()
if(WITH_XPU)
  add_subdirectory(xpu)
endif()