From 1e72e03217405ae77671d1efaa9c5d5f4a3e0e2d Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Fri, 11 Dec 2020 18:12:08 +0800 Subject: [PATCH] remove duplicated macro (#29563) --- paddle/fluid/operators/math/prelu.cu | 5 ----- 1 file changed, 5 deletions(-) diff --git a/paddle/fluid/operators/math/prelu.cu b/paddle/fluid/operators/math/prelu.cu index af2996a4ac9..323c3ad3064 100644 --- a/paddle/fluid/operators/math/prelu.cu +++ b/paddle/fluid/operators/math/prelu.cu @@ -20,11 +20,6 @@ namespace math { #define CUDA_NUM_THREADS 1024 -// CUDA: grid stride looping -#define CUDA_KERNEL_LOOP(i, n) \ - for (size_t i = blockIdx.x * blockDim.x + threadIdx.x; i < (n); \ - i += blockDim.x * gridDim.x) - inline static int PADDLE_GET_BLOCKS(const int N) { return (N + CUDA_NUM_THREADS - 1) / CUDA_NUM_THREADS; } -- GitLab