Abort if IQK_IMPLEMENT is not defined

This commit is contained in:
Kawrakow
2025-06-22 16:49:38 +03:00
parent d3ca8c23cf
commit 258c111d84

View File

@@ -1185,6 +1185,7 @@ bool iqk_flash_attn_impl(int int_type_k, // type of k
#else // IQK_IMPLEMENT
extern "C" IQK_API bool iqk_mul_mat(int, long, long, long, int, const void *, long, int, const void *, long, float *, long, int, int) {
GGML_ABORT("Unsupported CPU. You may need to manually set compilation flags\n");
return false;
}
@@ -1194,11 +1195,13 @@ extern "C" IQK_API bool iqk_mul_mat_4d(long /*Nx*/, long /*Ny*/, long /*ne00*/,
int /*typeA*/, const void * /*A*/, long /*strideA*/,
int /*typeB*/, const void * /*B*/, long /*strideB*/,
float * /*C*/, long /*stride_C*/, int /*ith*/, int /*nth*/) {
GGML_ABORT("Unsupported CPU. You may need to manually set compilation flags\n");
return false;
}
extern "C" IQK_API bool iqk_mul_mat_moe(long, long, long, int, int, const void *, long, int, const void *, long, float *, long, long,
const void *, int, int) {
GGML_ABORT("Unsupported CPU. You may need to manually set compilation flags\n");
return false;
}
@@ -1206,6 +1209,7 @@ extern "C" IQK_API bool iqk_moe_fused_up_gate(long /*Nx*/, long /*Ny*/, long /*n
int /*typeA*/, const void * /*Aup*/, const void * /*Agate*/, long /*strideA*/,
int /*typeB*/, const void * /*B*/, long /*strideB*/,
float * /*C*/, long /*nb1*/, long /*nb2*/, const void * /*vrow_mapping*/, int /*ith*/, int /*nth*/) {
GGML_ABORT("Unsupported CPU. You may need to manually set compilation flags\n");
return false;
}