Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cpp/tensorrt_llm/kernels/quantization.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,14 @@ quantize_with_block_size(
}
}
}
// PDL completion is reported when every CTA has either exited or called
// this function at least once (per CUDA Programming Guide). Without a
// CTA-wide barrier, an early-finishing warp can trigger completion while
// other warps in the same CTA are still writing sf_out / out, allowing the
// downstream NVF4 GEMM consumer to read partial data once
// wait_on_dependent_grids returns. Drain the CTA's stores before trigger.
__syncthreads();
__threadfence();
cudaTriggerProgrammaticLaunchCompletion();
#endif
}
Expand Down
Loading