diff --git a/paddle/fluid/operators/math/prelu.cu b/paddle/fluid/operators/math/prelu.cu index af2996a4ac96ffa4857382884661f833b00a0062..323c3ad30649e40c88016cf2f4b0cacbc19b2988 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; }