Skip to content

Commit 0e80b11

Browse files
committed
Remove constexpr from vec_dot_q8_0_q8_1_mma
1 parent aea4a63 commit 0e80b11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-cuda/mmq.cuh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ static __device__ __forceinline__ void vec_dot_q8_0_q8_1_mma(
879879
#pragma unroll
880880
for (int l = 0; l < tile_C::ne/2; ++l) {
881881
const int j = tile_C::get_j(l);
882-
if constexpr (ds_layout == MMQ_Q8_1_DS_LAYOUT_D4) {
882+
if (ds_layout == MMQ_Q8_1_DS_LAYOUT_D4) {
883883
dB[l] = y_df[j*MMQ_TILE_Y_K + k01/QI8_1];
884884
} else {
885885
dB[l] = __low2float(y_ds[j*MMQ_TILE_Y_K + k01/QI8_1]);
@@ -906,7 +906,7 @@ static __device__ __forceinline__ void vec_dot_q8_0_q8_1_mma(
906906
#pragma unroll
907907
for (int l = 0; l < tile_C::ne/2; ++l) {
908908
const int j = j0 + tile_C::get_j(l);
909-
if constexpr (ds_layout == MMQ_Q8_1_DS_LAYOUT_D4) {
909+
if (ds_layout == MMQ_Q8_1_DS_LAYOUT_D4) {
910910
dB[l] = y_df[j*MMQ_TILE_Y_K + k01/QI8_1];
911911
} else {
912912
dB[l] = __low2float(y_ds[j*MMQ_TILE_Y_K + k01/QI8_1]);

0 commit comments

Comments
 (0)