Skip to content

Commit 22d6817

Browse files
author
Iwan Kawrakow
committed
Abort if IQK_IMPLEMENT is not defined
1 parent 4f97409 commit 22d6817

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml/src/iqk/iqk_mul_mat.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ bool iqk_flash_attn_impl(int int_type_k, // type of k
11851185
#else // IQK_IMPLEMENT
11861186

11871187
extern "C" IQK_API bool iqk_mul_mat(int, long, long, long, int, const void *, long, int, const void *, long, float *, long, int, int) {
1188+
GGML_ABORT("Unsupported CPU. You may need to manually set compilation flags\n");
11881189
return false;
11891190
}
11901191

@@ -1194,18 +1195,21 @@ extern "C" IQK_API bool iqk_mul_mat_4d(long /*Nx*/, long /*Ny*/, long /*ne00*/,
11941195
int /*typeA*/, const void * /*A*/, long /*strideA*/,
11951196
int /*typeB*/, const void * /*B*/, long /*strideB*/,
11961197
float * /*C*/, long /*stride_C*/, int /*ith*/, int /*nth*/) {
1198+
GGML_ABORT("Unsupported CPU. You may need to manually set compilation flags\n");
11971199
return false;
11981200
}
11991201

12001202
extern "C" IQK_API bool iqk_mul_mat_moe(long, long, long, int, int, const void *, long, int, const void *, long, float *, long, long,
12011203
const void *, int, int) {
1204+
GGML_ABORT("Unsupported CPU. You may need to manually set compilation flags\n");
12021205
return false;
12031206
}
12041207

12051208
extern "C" IQK_API bool iqk_moe_fused_up_gate(long /*Nx*/, long /*Ny*/, long /*ne00*/, int /*ne11*/, int /*unary_op*/,
12061209
int /*typeA*/, const void * /*Aup*/, const void * /*Agate*/, long /*strideA*/,
12071210
int /*typeB*/, const void * /*B*/, long /*strideB*/,
12081211
float * /*C*/, long /*nb1*/, long /*nb2*/, const void * /*vrow_mapping*/, int /*ith*/, int /*nth*/) {
1212+
GGML_ABORT("Unsupported CPU. You may need to manually set compilation flags\n");
12091213
return false;
12101214
}
12111215

0 commit comments

Comments
 (0)