From 60df925419086bffce3478be484398c2bdfbc592 Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Sat, 22 Jan 2022 21:08:26 +0800 Subject: [PATCH] remove useless cmake list (#39141) --- paddle/pten/kernels/CMakeLists.txt | 14 -------------- paddle/pten/kernels/cpu/CMakeLists.txt | 0 paddle/pten/kernels/dnnl/CMakeLists.txt | 0 paddle/pten/kernels/gpu/CMakeLists.txt | 0 paddle/pten/kernels/primitive/CMakeLists.txt | 0 paddle/pten/kernels/xpu/CMakeLists.txt | 0 6 files changed, 14 deletions(-) delete mode 100644 paddle/pten/kernels/cpu/CMakeLists.txt delete mode 100644 paddle/pten/kernels/dnnl/CMakeLists.txt delete mode 100644 paddle/pten/kernels/gpu/CMakeLists.txt delete mode 100644 paddle/pten/kernels/primitive/CMakeLists.txt delete mode 100644 paddle/pten/kernels/xpu/CMakeLists.txt diff --git a/paddle/pten/kernels/CMakeLists.txt b/paddle/pten/kernels/CMakeLists.txt index f838c4d424c..999f72a7e6b 100644 --- a/paddle/pten/kernels/CMakeLists.txt +++ b/paddle/pten/kernels/CMakeLists.txt @@ -2,23 +2,9 @@ set(kernel_declare_file ${PADDLE_BINARY_DIR}/paddle/pten/kernels/declarations.h. set(kernel_declare_file_final ${PADDLE_BINARY_DIR}/paddle/pten/kernels/declarations.h) file(WRITE ${kernel_declare_file} "// Generated by the paddle/pten/kernels/CMakeLists.txt. DO NOT EDIT!\n\n#pragma once\n\n") -# kernel primitive api -add_subdirectory(primitive) # pten functors and functions called by kernels add_subdirectory(funcs) -add_subdirectory(cpu) -if(WITH_GPU OR WITH_ROCM) - add_subdirectory(gpu) -endif() -if(WITH_MKLDNN) - # mkldnn will be deprecated and use the new name dnnl - add_subdirectory(dnnl) -endif() -if(WITH_XPU) - add_subdirectory(xpu) -endif() - # pten depends all pten kernel targets set_property(GLOBAL PROPERTY PTEN_KERNELS "") diff --git a/paddle/pten/kernels/cpu/CMakeLists.txt b/paddle/pten/kernels/cpu/CMakeLists.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/paddle/pten/kernels/dnnl/CMakeLists.txt b/paddle/pten/kernels/dnnl/CMakeLists.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/paddle/pten/kernels/gpu/CMakeLists.txt b/paddle/pten/kernels/gpu/CMakeLists.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/paddle/pten/kernels/primitive/CMakeLists.txt b/paddle/pten/kernels/primitive/CMakeLists.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/paddle/pten/kernels/xpu/CMakeLists.txt b/paddle/pten/kernels/xpu/CMakeLists.txt deleted file mode 100644 index e69de29bb2d..00000000000 -- GitLab