[Perf] Occupancy tuning for DSA indexer fp8-quant Q kernel (#32755)
Signed-off-by: Rainchar9119 <1134601163@qq.com>
This commit is contained in:
@@ -35,8 +35,10 @@ SGL_DEVICE uint8_t quant_fp4_e2m1(float x) {
|
||||
return idx;
|
||||
}
|
||||
|
||||
// 4 warps per block: warp-per-(token, head) work-item dispatch (Q kernel).
|
||||
constexpr uint32_t kFusedQBlockSize = 128;
|
||||
// 8 warps per block: warp-per-(token, head) work-item dispatch (Q kernel).
|
||||
// 256 threads lifts scheduler occupancy (~38% -> ~86%) on the fp8-quant path;
|
||||
// math is unchanged, output is bitwise-identical.
|
||||
constexpr uint32_t kFusedQBlockSize = 256;
|
||||
constexpr uint32_t kFusedQNumWarps = kFusedQBlockSize / device::kWarpThreads;
|
||||
|
||||
// 8 warps per block: block-per-token work-item dispatch (K kernel).
|
||||
|
||||
Reference in New Issue
Block a user