# pten math functions called by kernels add_subdirectory(math) # 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()