From 786373ba2981a325b55c5f98fa14b80cec0be389 Mon Sep 17 00:00:00 2001 From: whs Date: Tue, 25 Aug 2020 08:55:43 +0800 Subject: [PATCH] Use atomicAdd defined in paddle framework (#26628) test=develop --- paddle/fluid/operators/grid_sampler_op.cu | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/operators/grid_sampler_op.cu b/paddle/fluid/operators/grid_sampler_op.cu index dc6258e507..7e1e7b1e69 100644 --- a/paddle/fluid/operators/grid_sampler_op.cu +++ b/paddle/fluid/operators/grid_sampler_op.cu @@ -16,6 +16,7 @@ limitations under the License. */ #include "paddle/fluid/framework/op_registry.h" #include "paddle/fluid/operators/grid_sampler_op.h" #include "paddle/fluid/platform/cuda_device_function.h" +#include "paddle/fluid/platform/cuda_primitives.h" #include "paddle/fluid/platform/gpu_info.h" namespace paddle {