Skip to content

Commit

Permalink
[PTen] Remove hybird dir (#38863)
Browse files Browse the repository at this point in the history
* remove hybird dir

* resolve conflit
  • Loading branch information
chenwhql authored Jan 12, 2022
1 parent c2f825d commit 5f5f626
Showing 19 changed files with 15 additions and 57 deletions.
2 changes: 1 addition & 1 deletion paddle/fluid/operators/math/math_function.cc
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ limitations under the License. */
#include "paddle/fluid/operators/math/math_function_impl.h"
#include "paddle/fluid/platform/bfloat16.h"
#include "paddle/fluid/platform/float16.h"
#include "paddle/pten/kernels/hybird/eigen/common.h"
#include "paddle/pten/kernels/funcs/eigen/common.h"
#include "unsupported/Eigen/CXX11/Tensor"

namespace paddle {
2 changes: 1 addition & 1 deletion paddle/fluid/operators/math/math_function.cu
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ limitations under the License. */
#include "paddle/fluid/operators/math/math_function_impl.h"
#include "paddle/fluid/platform/bfloat16.h"
#include "paddle/fluid/platform/float16.h"
#include "paddle/pten/kernels/hybird/eigen/common.h"
#include "paddle/pten/kernels/funcs/eigen/common.h"

namespace paddle {
namespace operators {
4 changes: 2 additions & 2 deletions paddle/pten/kernels/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@ file(WRITE ${kernel_declare_file} "// Generated by the paddle/pten/kernels/CMake

# kernel primitive api
add_subdirectory(primitive)
# pten hybird functors and functions called by kernels
add_subdirectory(hybird)
# pten functors and functions called by kernels
add_subdirectory(funcs)

add_subdirectory(cpu)
if(WITH_GPU OR WITH_ROCM)
2 changes: 1 addition & 1 deletion paddle/pten/kernels/cpu/elementwise.h
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ limitations under the License. */
#include "paddle/pten/kernels/funcs/elementwise_base.h"

#include "paddle/fluid/operators/math/blas.h"
#include "paddle/pten/kernels/hybird/eigen/common.h"
#include "paddle/pten/kernels/funcs/eigen/common.h"

namespace pten {

4 changes: 2 additions & 2 deletions paddle/pten/kernels/cpu/reduce.h
Original file line number Diff line number Diff line change
@@ -22,8 +22,8 @@

#include "paddle/pten/api/lib/utils/storage.h"
#include "paddle/pten/core/dense_tensor.h"
#include "paddle/pten/kernels/hybird/eigen/common.h"
#include "paddle/pten/kernels/hybird/transpose.h"
#include "paddle/pten/kernels/funcs/eigen/common.h"
#include "paddle/pten/kernels/funcs/transpose.h"
// See Note [ Why still include the fluid headers? ]
#include "paddle/fluid/operators/eigen/eigen_function.h"
namespace pten {
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_subdirectory(eigen)
add_subdirectory(general)

cc_library(pten_transpose_cpu SRCS transpose.cc DEPS dense_tensor pten_context)
if(WITH_GPU)
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "paddle/pten/kernels/hybird/transpose.h"
#include "paddle/pten/kernels/funcs/transpose.h"
#include "paddle/fluid/framework/ddim.h"
#include "paddle/pten/backends/cpu/cpu_context.h"
#include "paddle/pten/core/dense_tensor.h"
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
#include "paddle/fluid/memory/memcpy.h"
#include "paddle/pten/backends/gpu/gpu_context.h"
#include "paddle/pten/core/dense_tensor.h"
#include "paddle/pten/kernels/hybird/transpose.h"
#include "paddle/pten/kernels/funcs/transpose.h"

// See Note [ Why still include the fluid headers? ]
#include "paddle/fluid/platform/bfloat16.h"
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
#include "paddle/pten/core/dense_tensor.h"

#include "paddle/fluid/operators/eigen/eigen_function.h"
#include "paddle/pten/kernels/hybird/eigen/common.h"
#include "paddle/pten/kernels/funcs/eigen/common.h"

namespace pten {

2 changes: 1 addition & 1 deletion paddle/pten/kernels/gpu/dot_kernel.cu
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@

#include "paddle/pten/backends/gpu/gpu_context.h"
#include "paddle/pten/core/kernel_registry.h"
#include "paddle/pten/kernels/hybird/eigen/common.h"
#include "paddle/pten/kernels/funcs/eigen/common.h"

// See Note [ Why still include the fluid headers? ]
#include "paddle/fluid/operators/eigen/eigen_function.h"
Empty file.
41 changes: 0 additions & 41 deletions paddle/pten/kernels/hybird/eigen/sign.h

This file was deleted.

Empty file.
2 changes: 1 addition & 1 deletion paddle/pten/kernels/impl/dot_grad_kernel_impl.h
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ limitations under the License. */
#pragma once

#include "paddle/pten/core/dense_tensor.h"
#include "paddle/pten/kernels/hybird/eigen/common.h"
#include "paddle/pten/kernels/funcs/eigen/common.h"

#include "paddle/pten/kernels/complex_kernel.h"

2 changes: 1 addition & 1 deletion paddle/pten/kernels/impl/full_kernel_impl.h
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ limitations under the License. */
#include "paddle/pten/common/scalar.h"
#include "paddle/pten/common/scalar_array.h"
#include "paddle/pten/core/dense_tensor.h"
#include "paddle/pten/kernels/hybird/eigen/common.h"
#include "paddle/pten/kernels/funcs/eigen/common.h"

// See Note [ Why still include the fluid headers? ]
#include "paddle/fluid/operators/eigen/eigen_function.h"
2 changes: 1 addition & 1 deletion paddle/pten/kernels/impl/scale_kernel_impl.h
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ limitations under the License. */

#include "paddle/pten/common/scalar.h"
#include "paddle/pten/core/dense_tensor.h"
#include "paddle/pten/kernels/hybird/eigen/common.h"
#include "paddle/pten/kernels/funcs/eigen/common.h"

// See Note [ Why still include the fluid headers? ]
#include "paddle/fluid/operators/eigen/eigen_function.h"
2 changes: 1 addition & 1 deletion paddle/pten/kernels/impl/sign_kernel_impl.h
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ limitations under the License. */
#pragma once

#include "paddle/pten/core/dense_tensor.h"
#include "paddle/pten/kernels/hybird/eigen/common.h"
#include "paddle/pten/kernels/funcs/eigen/common.h"

// See Note [ Why still include the fluid headers? ]
#include "paddle/fluid/operators/eigen/eigen_function.h"

0 comments on commit 5f5f626

Please sign in to comment.