Skip to content

Commit 5be87ba

Browse files
authored
fix win32 cu12 (#59852)
1 parent 831736a commit 5be87ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/phi/kernels/funcs/weight_only_gemv.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ __global__ void weight_only_batched_gemv_multi_warp(const int8_t* qweight,
729729
*reinterpret_cast<HALF_2_TYPE*>(in_v + y),
730730
v);
731731
}
732-
accumulator[b] += v.x + v.y;
732+
accumulator[b] = accumulator[b] + static_cast<T>(v.x + v.y);
733733
} else {
734734
#pragma unroll
735735
for (int x = 0; x < NPerBlock / 2; ++x) {

0 commit comments

Comments
 (0)