Skip to content

Commit 60245e4

Browse files
committed
Fix another case
Caught by @pavoljuhas in review.
1 parent da38429 commit 60245e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/statespace_cuda_kernels.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ __global__ void SampleKernel(unsigned num_blocks,
317317
FP3 re = state[l];
318318
FP3 im = state[l + warp_size];
319319
csum += re * re + im * im;
320-
while (rs[m] < csum && m < num_samples) {
320+
while (m < num_samples && rs[m] < csum) {
321321
bitstrings[m++] = k0 + k;
322322
}
323323
}

0 commit comments

Comments
 (0)