We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ff256 commit c238a92Copy full SHA for c238a92
src/popsift/common/excl_blk_prefix_sum.h
@@ -132,16 +132,15 @@ class Block
132
_mapping_writer.set( ebs, self, cell );
133
}
134
135
+ // Wait to update loop_total until everyone is done.
136
+ __syncthreads();
137
if( threadIdx.y == 0 && threadIdx.x == 31 ) {
138
loop_total += ibs;
139
- __syncthreads();
140
141
- // if( threadIdx.y == 0 && threadIdx.x == 31 )
142
- if( threadIdx.y == 0 )
+ if( threadIdx.y == 0 && threadIdx.x == 31 )
143
{
144
- loop_total = popsift::shuffle( loop_total, 31 );
145
_total_writer.set( loop_total );
146
147
0 commit comments