Commit b7902fa7 authored by Paul's avatar Paul
Browse files

Fix zero global

parent 28649b6a
...@@ -61,7 +61,7 @@ inline __device__ __attribute__((const)) index_int compute_local_size() ...@@ -61,7 +61,7 @@ inline __device__ __attribute__((const)) index_int compute_local_size()
const auto nglobal = compute_global_size(); const auto nglobal = compute_global_size();
if(group_id == ngroup - 1) if(group_id == ngroup - 1)
{ {
return nglobal % nlocal; return 1 + (nglobal - 1) % nlocal;
} }
else else
{ {
......
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