"docs/source/hpo/custom_algorithm.rst" did not exist on "9520f251808add32cd7c6b36f65fc6e031eaa3ff"
Commit f5a19acf authored by Shucai Xiao's avatar Shucai Xiao
Browse files

fixed a small bug

parent f54be162
...@@ -182,7 +182,7 @@ __device__ auto block_reduce(index idx, Op op, T init, std::size_t n, F f) ...@@ -182,7 +182,7 @@ __device__ auto block_reduce(index idx, Op op, T init, std::size_t n, F f)
} }
__syncthreads(); __syncthreads();
type y = 0; type y = init;
for(std::size_t i = 0; i < idx.nlocal() / 64; i++) for(std::size_t i = 0; i < idx.nlocal() / 64; i++)
{ {
y = op(y, buffer[i]); y = op(y, buffer[i]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment