Skip to content

Commit 59bffad

Browse files
authored
bugfix: Fix no return type error (flashinfer-ai#904)
This pull request includes a change to the `convert_s_to_p` function in the `mla_hopper.cuh` file to improve type safety and clarity. Function signature modification: * [`include/flashinfer/attention/mla_hopper.cuh`](diffhunk://#diff-5ebeba4848db48074fb2636d9ef52f85409674d9fcaba1e2b8091cf6fc36e651L554-R554): Changed the return type of the `convert_s_to_p` function from `auto` to `void` to explicitly indicate that the function does not return a value.
1 parent f5dec3d commit 59bffad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: include/flashinfer/attention/mla_hopper.cuh

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ __device__ __forceinline__ auto get_block_coord(const Params& params, const uint
551551
}
552552

553553
template <typename KTraits>
554-
__device__ __forceinline__ convert_s_to_p(float* s_frag, uint32_t* p_frag) {
554+
__device__ __forceinline__ void convert_s_to_p(float* s_frag, uint32_t* p_frag) {
555555
#pragma unroll
556556
for (uint32_t i = 0; i < KTraits::NUM_REGS_S_FRAG / 8; ++i) {
557557
vec_cast<typename KTraits::DTypeKV, float>::cast<8>(

0 commit comments

Comments
 (0)