add_subdirectory(dynload)
add_subdirectory(cpu)
add_subdirectory(custom)
if(WITH_GPU OR WITH_ROCM) add_subdirectory(gpu) endif()
if(WITH_XPU) add_subdirectory(xpu) endif() cc_library(pten_context SRCS all_context.cc DEPS device_context cpu_context) if(WITH_XPU) add_dependencies(pten_context xpu_context) endif()
if(WITH_GPU) add_dependencies(pten_context gpu_context) endif()