Skip to content
Snippets Groups Projects
Commit 638f84de authored by cmaffeo2's avatar cmaffeo2
Browse files

Reverted from _ballot_sync() to __activemask() in atomicAggInc

parent fbeccea0
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,8 @@ __inline__ __device__ uint __lanemask_lt() ...@@ -41,7 +41,8 @@ __inline__ __device__ uint __lanemask_lt()
} }
__device__ int atomicAggInc(int *ctr, int warpLane) __device__ int atomicAggInc(int *ctr, int warpLane)
{ {
unsigned int active = __ballot_sync(0xFFFFFFFF, 1); // unsigned int active = __ballot_sync(0xFFFFFFFF, 1);
unsigned int active = __activemask();
int leader = __ffs(active) - 1; int leader = __ffs(active) - 1;
int change = __popc(active); int change = __popc(active);
unsigned int rank = __popc(active & __lanemask_lt()); unsigned int rank = __popc(active & __lanemask_lt());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment