withdraw pr2467 on branch 0.11.0 (#4002)

Signed-off-by: cmli <chengming.li@zilliz.com>

Co-authored-by: cmli <chengming.li@zilliz.com>
This commit is contained in:
op-hunter 2020-10-15 19:39:49 +08:00 committed by GitHub
parent 4c23773e82
commit cdd40689f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,8 +124,16 @@ struct BlockSelect {
__device__ inline void addThreadQ(K k, V v) {
if (Dir ? Comp::gt(k, warpKTop) : Comp::lt(k, warpKTop)) {
threadK[numVals] = k;
threadV[numVals ++] = v;
// Rotate right
#pragma unroll
for (int i = NumThreadQ - 1; i > 0; --i) {
threadK[i] = threadK[i - 1];
threadV[i] = threadV[i - 1];
}
threadK[0] = k;
threadV[0] = v;
++numVals;
}
}