diff --git a/paddle/fluid/operators/math/segment_pooling.cu b/paddle/fluid/operators/math/segment_pooling.cu index 67cf3162460073100574e28dadfa655264e07a99..0cbfaa4c5df7bd3e791c460960d2977aad982ebf 100644 --- a/paddle/fluid/operators/math/segment_pooling.cu +++ b/paddle/fluid/operators/math/segment_pooling.cu @@ -120,8 +120,9 @@ __global__ void SegmentMeanKernel(const Index* segment_ids, const T* input, } template -__global__ void SegmentOpsKernel(const Index* segment_ids, const T* input, - T* output, Helper h, Pool pool) { +__global__ void __launch_bounds__(1024, 1) + SegmentOpsKernel(const Index* segment_ids, const T* input, T* output, + Helper h, Pool pool) { CUDA_KERNEL_LOOP(stripe_index, h.total_stripe_count) { Index segment_offset, dim_index_base, actual_height; Index inner_dim_size = h.inner_dim_size;