diff --git a/paddle/fluid/operators/fused/attn_bias_add.cu.h b/paddle/fluid/operators/fused/attn_bias_add.cu.h index b44faf31501158f82ab7d3b283cbe8a08fb3b485..0c8618972e8ac56e9989edea50fb013678988db8 100644 --- a/paddle/fluid/operators/fused/attn_bias_add.cu.h +++ b/paddle/fluid/operators/fused/attn_bias_add.cu.h @@ -34,7 +34,7 @@ namespace cub = hipcub; #include "paddle/fluid/operators/elementwise/elementwise_op_broadcast.cu.h" #include "paddle/fluid/operators/kernel_primitives/kernel_primitives.h" #include "paddle/fluid/operators/reduce_ops/reduce_op.cu.h" -#include "paddle/fluid/platform/fast_divmod.h" +#include "paddle/phi/kernels/funcs/fast_divmod.h" namespace paddle { namespace operators { diff --git a/paddle/fluid/operators/optimizers/lars_momentum_op.cu b/paddle/fluid/operators/optimizers/lars_momentum_op.cu index 30f380042411864a8729d725e9895b9114be0f8c..43ac1532d4f2115efd560579c62ce142fb0c85f2 100644 --- a/paddle/fluid/operators/optimizers/lars_momentum_op.cu +++ b/paddle/fluid/operators/optimizers/lars_momentum_op.cu @@ -15,7 +15,7 @@ limitations under the License. */ #include "paddle/fluid/operators/optimizers/lars_momentum_op.h" #include "paddle/fluid/framework/op_registry.h" #include "paddle/fluid/operators/amp/fp16_type_traits.h" -#include "paddle/fluid/platform/fast_divmod.h" +#include "paddle/phi/kernels/funcs/aligned_vector.h" #include "paddle/phi/kernels/funcs/math_cuda_utils.h" #if CUDA_VERSION >= 11000 diff --git a/paddle/fluid/platform/fast_divmod.h b/paddle/phi/kernels/funcs/fast_divmod.h similarity index 95% rename from paddle/fluid/platform/fast_divmod.h rename to paddle/phi/kernels/funcs/fast_divmod.h index 892c5b29aae332ec789d9b11cb3d0e352b76a593..cdd9524627b922a9458afc5f9dd8c8d02f7dc364 100644 --- a/paddle/fluid/platform/fast_divmod.h +++ b/paddle/phi/kernels/funcs/fast_divmod.h @@ -23,8 +23,8 @@ limitations under the License. */ #define __forceinline__ __inline__ #endif -namespace paddle { -namespace platform { +namespace phi { +namespace funcs { struct FastDivMod { // 1st value represents the result of input number divides by recorded divisor @@ -64,5 +64,5 @@ struct FastDivMod { uint32_t multiplier; }; -} // namespace platform -} // namespace paddle +} // namespace funcs +} // namespace phi