diff --git a/Paddle b/Paddle index 2588f489910..2171de22496 160000 --- a/Paddle +++ b/Paddle @@ -1 +1 @@ -Subproject commit 2588f4899106cd27bdfcc84ba4c2f5f7aac570ab +Subproject commit 2171de2249622cbe2c8d7f315257657ad6f30184 diff --git a/backends/metax_gpu/kernels/funcs/blas/blas.h b/backends/metax_gpu/kernels/funcs/blas/blas.h index fa4b4643f89..75ea8c921e2 100644 --- a/backends/metax_gpu/kernels/funcs/blas/blas.h +++ b/backends/metax_gpu/kernels/funcs/blas/blas.h @@ -282,6 +282,9 @@ class Blas { template T DOT(int n, const T* x, const T* y) const; + template + void CUDOT( + int n, const T* x, int incx, const T* y, int incy, T* result) const; template void SCAL(int n, const T a, T* x) const; @@ -541,7 +544,10 @@ class BlasT : private Blas { T DOT(ARGS... args) const { return Base()->template DOT(args...); } - + template + void CUDOT(ARGS... args) const { + Base()->template CUDOT(args...); + } template void SCAL(ARGS... args) const { Base()->template SCAL(args...); diff --git a/backends/metax_gpu/patch/paddle.patch b/backends/metax_gpu/patch/paddle.patch index f2e4f067bb2..7ba32b5b399 100755 --- a/backends/metax_gpu/patch/paddle.patch +++ b/backends/metax_gpu/patch/paddle.patch @@ -942,6 +942,19 @@ index f0cca0f701..02ea957240 100644 namespace phi { // To determine use cudnn or not. +diff --git a/paddle/phi/kernels/gpu/dot_kernel.cu b/paddle/phi/kernels/gpu/dot_kernel.cu +index af27ac89ab..ee0edc6b8e 100644 +--- a/paddle/phi/kernels/gpu/dot_kernel.cu ++++ b/paddle/phi/kernels/gpu/dot_kernel.cu +@@ -15,7 +15,7 @@ + #include "paddle/phi/kernels/dot_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" + #include "paddle/phi/core/kernel_registry.h" +-#include "paddle/phi/kernels/funcs/blas/blas.h" ++#include "kernels/funcs/blas/blas.h" + #include "paddle/phi/kernels/funcs/eigen/common.h" + + #include "paddle/phi/kernels/full_kernel.h" diff --git a/paddle/phi/kernels/gpu/gelu_funcs.h b/paddle/phi/kernels/gpu/gelu_funcs.h index 29fa252e96..4ae72b0935 100644 --- a/paddle/phi/kernels/gpu/gelu_funcs.h