Skip to content

Commit 6016d0b

Browse files
HIP : fix RDNA4 build (#17792)
1 parent 1be9783 commit 6016d0b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ggml/src/ggml-cuda/mma.cuh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ namespace ggml_cuda_mma {
560560
xi[0] = xs[0];
561561
xi[1] = xs[1];
562562
#endif // defined(RDNA4)
563-
}else if constexpr (I == 16 && J == 8) {
563+
} else if constexpr (I == 16 && J == 8) {
564564
int64_t * xi = (int64_t *) t.x;
565565
#if defined(RDNA4)
566566
const int64_t * xs = (int64_t *) ((const int *) xs0 + (threadIdx.x % t.I) * stride + 4 * (threadIdx.x / t.I));
@@ -577,14 +577,13 @@ namespace ggml_cuda_mma {
577577
const int64_t * xs1 = xs + 2;
578578
xi[2] = xs1[0];
579579
xi[3] = xs1[1];
580-
581-
}else{
580+
#endif // defined(RDNA4)
581+
} else {
582582
NO_DEVICE_CODE;
583583
}
584584
} else {
585585
NO_DEVICE_CODE;
586586
}
587-
#endif // defined(RDNA4)
588587
#else
589588
#pragma unroll
590589
for (int l = 0; l < t.ne; ++l) {

0 commit comments

Comments
 (0)