CMakeLists.txt 634 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# pten basic functions called by kernels
add_subdirectory(functions)
# pten kernels for diff device
add_subdirectory(cpu)
if(WITH_GPU OR WITH_ROCM)
  # TODO(chenweihang): if hip can split from cuda impl, we should add hip dir
  add_subdirectory(cuda)
endif()
# TODO(chenweihang): migrate MKLDNN Kernel in the second phase of the project
if(WITH_MKLDNN)
  add_subdirectory(mkldnn)
endif()
# TODO(chenweihang): migrate NPU Kernel in the second phase of the project
if(WITH_ASCEND_CL)
  add_subdirectory(npu)
endif()
# TODO(chenweihang): migrate XPU Kernel in the second phase of the project
if(WITH_XPU)
  add_subdirectory(xpu)
endif()