From 8332d6d43a6235417897a14cd74cb1cbfe8d7332 Mon Sep 17 00:00:00 2001 From: Zihao Ye Date: Sun, 21 Jul 2024 00:27:51 +0000 Subject: [PATCH] upd --- include/flashinfer/sampling.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/flashinfer/sampling.cuh b/include/flashinfer/sampling.cuh index 1a2aebd1..49329fbd 100644 --- a/include/flashinfer/sampling.cuh +++ b/include/flashinfer/sampling.cuh @@ -115,7 +115,7 @@ __device__ __forceinline__ void DeviceSamplingFromProb( bool greater_than_u_diff[VEC_SIZE]; #ifdef FLASHINFER_CUB_SUBTRACTLEFT_DEFINED BlockAdjacentDifference(temp_storage->block_prim.adj_diff) - .SubtractLeft(greater_than_u_diff, greater_than_u, BoolDiffOp()); + .SubtractLeft(greater_than_u, greater_than_u_diff, BoolDiffOp()); #else BlockAdjacentDifference(temp_storage->block_prim.adj_diff) .FlagHeads(greater_than_u_diff, greater_than_u, BoolDiffOp());