Lines Matching full:queryidx
149 "const int queryIdx = mad24(BLOCK_SIZE, groupidx, lidy);\n"
150 "const int queryOffset = min(queryIdx, query_rows - 1) * step;\n"
206 "if (queryIdx < query_rows && trainIdx < train_rows && result < myBestDistance )\n"
229 "if (queryIdx < query_rows && lidx == 0)\n"
231 "bestTrainIdx[queryIdx] = myBestTrainIdx;\n"
232 "bestDistance[queryIdx] = myBestDistance;\n"
255 "const int queryIdx = mad24(BLOCK_SIZE, groupidy, lidy);\n"
256 "const int queryOffset = min(queryIdx, query_rows - 1) * step;\n"
285 "if (queryIdx < query_rows && trainIdx < train_rows && convert_float(result) < maxDistance)\n"
287 "int ind = atom_inc(nMatches + queryIdx);\n"
290 "bestTrainIdx[mad24(queryIdx, ostep, ind)] = trainIdx;\n"
291 "bestDistance[mad24(queryIdx, ostep, ind)] = result;\n"
310 "const int queryIdx = mad24(BLOCK_SIZE, groupidx, lidy);\n"
311 "const int queryOffset = min(queryIdx, query_rows - 1) * step;\n"
369 "if (queryIdx < query_rows && trainIdx < train_rows)\n"
436 "if (queryIdx < query_rows && lidx == 0)\n"
438 "bestTrainIdx[queryIdx] = (int2)(myBestTrainIdx1, myBestTrainIdx2);\n"
439 "bestDistance[queryIdx] = (float2)(myBestDistance1, myBestDistance2);\n"