From 3b4dcad79f822b3c54fbfc2400efd363f515a722 Mon Sep 17 00:00:00 2001 From: Qi Li Date: Sun, 25 Apr 2021 12:12:09 +0800 Subject: [PATCH] [ROCM] update PADDLE_WITH_ROCM to PADDLE_WITH_HIP, test=develop (#32487) --- paddle/fluid/operators/expand_as_op.cc | 2 +- paddle/fluid/operators/expand_as_v2_op.cc | 2 +- paddle/fluid/operators/expand_op.cc | 2 +- paddle/fluid/operators/expand_v2_op.cc | 2 +- paddle/fluid/operators/meshgrid_op.cc | 2 +- paddle/fluid/operators/tile_op.cc | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/paddle/fluid/operators/expand_as_op.cc b/paddle/fluid/operators/expand_as_op.cc index 8850dc45d2..e2bf61de63 100644 --- a/paddle/fluid/operators/expand_as_op.cc +++ b/paddle/fluid/operators/expand_as_op.cc @@ -147,7 +147,7 @@ REGISTER_OP_CPU_KERNEL( ops::ExpandAsGradKernel, ops::ExpandAsGradKernel, ops::ExpandAsGradKernel); -#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_ROCM) +#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP) REGISTER_OP_CUDA_KERNEL( expand_as, ops::ExpandAsKernel, ops::ExpandAsKernel, diff --git a/paddle/fluid/operators/expand_as_v2_op.cc b/paddle/fluid/operators/expand_as_v2_op.cc index f0a6e6ec33..5296a144f6 100644 --- a/paddle/fluid/operators/expand_as_v2_op.cc +++ b/paddle/fluid/operators/expand_as_v2_op.cc @@ -129,7 +129,7 @@ REGISTER_OP_CPU_KERNEL( ops::ExpandAsV2GradKernel, ops::ExpandAsV2GradKernel, ops::ExpandAsV2GradKernel); -#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_ROCM) +#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP) REGISTER_OP_CUDA_KERNEL( expand_as_v2, ops::ExpandAsV2Kernel, diff --git a/paddle/fluid/operators/expand_op.cc b/paddle/fluid/operators/expand_op.cc index 6797639b94..e7da08ff27 100644 --- a/paddle/fluid/operators/expand_op.cc +++ b/paddle/fluid/operators/expand_op.cc @@ -273,7 +273,7 @@ REGISTER_OP_CPU_KERNEL( ops::ExpandGradKernel, ops::ExpandGradKernel, ops::ExpandGradKernel); -#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_ROCM) +#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP) REGISTER_OP_CUDA_KERNEL( expand, ops::ExpandKernel, ops::ExpandKernel, diff --git a/paddle/fluid/operators/expand_v2_op.cc b/paddle/fluid/operators/expand_v2_op.cc index e65011bf7d..618c1560c5 100644 --- a/paddle/fluid/operators/expand_v2_op.cc +++ b/paddle/fluid/operators/expand_v2_op.cc @@ -278,7 +278,7 @@ REGISTER_OP_CPU_KERNEL( ops::ExpandV2GradKernel, ops::ExpandV2GradKernel, ops::ExpandV2GradKernel); -#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_ROCM) +#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP) REGISTER_OP_CUDA_KERNEL( expand_v2, ops::ExpandV2Kernel, ops::ExpandV2Kernel, diff --git a/paddle/fluid/operators/meshgrid_op.cc b/paddle/fluid/operators/meshgrid_op.cc index 2ad3c9f923..54600e26bb 100644 --- a/paddle/fluid/operators/meshgrid_op.cc +++ b/paddle/fluid/operators/meshgrid_op.cc @@ -157,7 +157,7 @@ REGISTER_OP_CPU_KERNEL( ops::MeshgridGradKernel, ops::MeshgridGradKernel, ops::MeshgridGradKernel); -#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_ROCM) +#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP) REGISTER_OP_CUDA_KERNEL( meshgrid, ops::MeshgridKernel, ops::MeshgridKernel, diff --git a/paddle/fluid/operators/tile_op.cc b/paddle/fluid/operators/tile_op.cc index a8b1c72354..b98e620cc2 100644 --- a/paddle/fluid/operators/tile_op.cc +++ b/paddle/fluid/operators/tile_op.cc @@ -286,7 +286,7 @@ REGISTER_OP_CPU_KERNEL( ops::TileGradKernel, ops::TileGradKernel, ops::TileGradKernel); -#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_ROCM) +#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP) REGISTER_OP_CUDA_KERNEL( tile, ops::TileKernel, ops::TileKernel, -- GitLab