Skip to content

Commit cbf2425

Browse files
committed
Merge branch 'develop' into b68
2 parents c28faa1 + db92e25 commit cbf2425

File tree

191 files changed

+563
-336
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+563
-336
lines changed

paddle/phi/backends/dynload/nvtx.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ limitations under the License. */
1414
#pragma once
1515
#ifndef _WIN32
1616
#include <cuda.h>
17+
#ifndef NVTX_SUPPRESS_V2_DEPRECATION_WARNING
18+
#define NVTX_SUPPRESS_V2_DEPRECATION_WARNING
19+
#endif
1720
#include <nvToolsExt.h>
1821

1922
#include <mutex> // NOLINT

paddle/phi/kernels/abs_grad_kernel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
namespace phi {
2121

2222
template <typename T, typename Context>
23-
void AbsGradKernel(const Context& ctx,
23+
void AbsGradKernel(const Context& dev_ctx,
2424
const DenseTensor& x,
2525
const DenseTensor& dout,
2626
DenseTensor* dx);
2727

2828
template <typename T, typename Context>
29-
void AbsDoubleGradKernel(const Context& ctx,
29+
void AbsDoubleGradKernel(const Context& dev_ctx,
3030
const DenseTensor& x,
3131
const DenseTensor& ddx,
3232
DenseTensor* ddout);

paddle/phi/kernels/abs_kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
namespace phi {
2121

2222
template <typename T, typename Context>
23-
void AbsKernel(const Context& ctx, const DenseTensor& x, DenseTensor* out);
23+
void AbsKernel(const Context& dev_ctx, const DenseTensor& x, DenseTensor* out);
2424

2525
} // namespace phi

paddle/phi/kernels/assert_kernel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
namespace phi {
2323

2424
template <typename T, typename Context>
25-
void AssertKernel(const Context& ctx,
25+
void AssertKernel(const Context& dev_ctx,
2626
const DenseTensor& cond,
2727
const std::vector<const DenseTensor*>& data,
2828
int64_t summarize) {

paddle/phi/kernels/assert_kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
namespace phi {
2020

2121
template <typename T, typename Context>
22-
void AssertKernel(const Context& ctx,
22+
void AssertKernel(const Context& dev_ctx,
2323
const DenseTensor& cond,
2424
const std::vector<const DenseTensor*>& data,
2525
int64_t summarize);

paddle/phi/kernels/atan2_grad_kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
namespace phi {
2020

2121
template <typename T, typename Context>
22-
void Atan2GradKernel(const Context& ctx,
22+
void Atan2GradKernel(const Context& dev_ctx,
2323
const DenseTensor& x,
2424
const DenseTensor& y,
2525
const DenseTensor& out_grad,

paddle/phi/kernels/atan2_kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
namespace phi {
2020

2121
template <typename T, typename Context>
22-
void Atan2Kernel(const Context& ctx,
22+
void Atan2Kernel(const Context& dev_ctx,
2323
const DenseTensor& x,
2424
const DenseTensor& y,
2525
DenseTensor* out);

paddle/phi/kernels/bernoulli_kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace phi {
2828
* @param out A Tensor filled with random binary number
2929
*/
3030
template <typename T, typename Context>
31-
void BernoulliKernel(const Context& ctx,
31+
void BernoulliKernel(const Context& dev_ctx,
3232
const DenseTensor& x,
3333
DenseTensor* out);
3434

paddle/phi/kernels/binomial_kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace phi {
2929
* @param out A Tensor filled with returned random value
3030
*/
3131
template <typename T, typename Context>
32-
void BinomialiKernel(const Context& ctx,
32+
void BinomialiKernel(const Context& dev_ctx,
3333
const DenseTensor& count,
3434
const DenseTensor& prob,
3535
DenseTensor* out);

paddle/phi/kernels/bmm_grad_kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
namespace phi {
2020

2121
template <typename T, typename Context>
22-
void BmmGradKernel(const Context& ctx,
22+
void BmmGradKernel(const Context& dev_ctx,
2323
const DenseTensor& x,
2424
const DenseTensor& y,
2525
const DenseTensor& out_grad,

0 commit comments

Comments
 (0)