TensorRT-LLMs/cpp/kernels/xqa/hostUtils.h
Yao Yao ef763b0ddc
fix: rename some terms (#4534)
Signed-off-by: Yao Yao <lowsfer@users.noreply.github.com>
2025-05-23 23:23:49 +08:00

14 lines
467 B
C

#pragma once
#include <cuda_runtime.h>
inline cudaLaunchConfig_t makeLaunchConfig(
dim3 const& gridDim, dim3 const& ctaDim, size_t dynShmBytes, cudaStream_t stream, bool usePDL)
{
static cudaLaunchAttribute pdlAttr;
pdlAttr.id = cudaLaunchAttributeProgrammaticStreamSerialization;
pdlAttr.val.programmaticStreamSerializationAllowed = (usePDL ? 1 : 0);
cudaLaunchConfig_t cfg{gridDim, ctaDim, dynShmBytes, stream, &pdlAttr, 1};
return cfg;
}