# pten basic functions called by kernelsadd_subdirectory(functions)# pten kernels for diff deviceadd_subdirectory(cpu)if(WITH_GPU OR WITH_ROCM)# TODO(chenweihang): if hip can split from cuda impl, we should add hip diradd_subdirectory(cuda)endif()# TODO(chenweihang): migrate MKLDNN Kernel in the second phase of the projectif(WITH_MKLDNN)add_subdirectory(mkldnn)endif()# TODO(chenweihang): migrate NPU Kernel in the second phase of the projectif(WITH_ASCEND_CL)add_subdirectory(npu)endif()# TODO(chenweihang): migrate XPU Kernel in the second phase of the projectif(WITH_XPU)add_subdirectory(xpu)endif()