Skip to content

Commit 48afab4

Browse files
Update ggml/src/ggml-cuda/common.cuh
Co-authored-by: Johannes Gäßler <[email protected]>
1 parent 0129866 commit 48afab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/common.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ static void init_fastdiv_values(uint32_t d, uint32_t & mp, uint32_t & L) {
581581

582582
static __device__ __forceinline__ uint32_t fastdiv(uint32_t n, uint32_t mp, uint32_t L) {
583583
// Compute high 32 bits of n * mp
584-
uint32_t hi = __umulhi(n, mp);
584+
const uint32_t hi = __umulhi(n, mp);
585585
// Apply the formula
586586
return (hi + n) >> L;
587587
}

0 commit comments

Comments
 (0)