9 lines
524 B
Plaintext
9 lines
524 B
Plaintext
#include "../../engine/strata/src/kernels/cuda/qsa_select.cu"
|
|
extern "C" void oracle_scores(const float*k,const float*d,const float*q,const int*step,int64_t blocks,float*y,cudaStream_t s) {
|
|
// Select exactly the original deterministic multi-query warp path, nq=1.
|
|
strata::kernels::block_scores_multi_kernel<<<256,256,0,s>>>(k,d,q,step,1,blocks,y);
|
|
}
|
|
extern "C" void oracle_topk(const float*x,const int*step,int64_t blocks,int*y,cudaStream_t s) {
|
|
strata::kernels::block_topk_kernel<<<1,256,0,s>>>(x,step,blocks,2051,y);
|
|
}
|