Skip to content

Commit

Permalink
Added launch bounds to the reduce kernels (apache#16397)
Browse files Browse the repository at this point in the history
* Added launch bounds to the reduce_kernel_M1

* Trigger CI

* Reretrigger the CI
  • Loading branch information
ptrendx authored and yajiedesign committed Nov 6, 2019
1 parent 955b5fe commit 3dc5ce9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/operator/tensor/broadcast_reduce-inl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ __global__ void reduce_lines_kernel(const int N, const int M, const bool addto,
}

template<typename Reducer, int ndim, typename AType, typename DType, typename OType, typename OP>
__launch_bounds__(kMaxThreadsPerBlock)
__global__ void reduce_kernel_M1(const int N, const bool addto,
const DType* __restrict big, OType *small, const Shape<ndim> bshape,
const Shape<ndim> sshape) {
Expand All @@ -277,6 +278,7 @@ __global__ void reduce_kernel_M1(const int N, const bool addto,
}

template<typename Reducer, int ndim, typename DType, typename OP1, typename OP2>
__launch_bounds__(kMaxThreadsPerBlock)
__global__ void reduce_kernel_M1(const int N, const bool addto,
const DType* __restrict big,
const DType* __restrict lhs,
Expand Down

0 comments on commit 3dc5ce9

Please sign in to comment.