"vscode:/vscode.git/clone" did not exist on "14ec0ee96b4dd45304006b4e1d373350361389ae"
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)
}
__syncthreads();
type y = 0;
type y = init;
for(std::size_t i = 0; i < idx.nlocal() / 64; 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