Skip to content

Commit c18f402

Browse files
dsharletgxnnpack-bot
authored andcommitted
Fix build when XNN_ENABLE_KLEIDIAI is false
PiperOrigin-RevId: 839843243
1 parent 6d6315c commit c18f402

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/pf32-igemm/pf32-igemm-32x32-minmax-neonsme.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#if XNN_ENABLE_KLEIDIAI
1111
#include "kai/ukernels/matmul/matmul_clamp_f32_f32p_f32p/kai_matmul_clamp_f32_f32p2vlx1_f32p2vlx1b_2vlx2vl_sme_mopa.h"
12-
#endif // XNN_ENABLE_KLEIDIAI
1312

1413
size_t xnn_pf32_igemm_minmax_ukernel_32x32__neonsme_get_mr(void)
1514
{
@@ -20,16 +19,16 @@ size_t xnn_pf32_igemm_minmax_ukernel_32x32__neonsme_get_nr(void)
2019
{
2120
return kai_get_nr_matmul_clamp_f32_f32p2vlx1_f32p2vlx1b_2vlx2vl_sme_mopa();
2221
}
22+
#endif // XNN_ENABLE_KLEIDIAI
2323

2424
void xnn_pf32_igemm_minmax_ukernel_32x32__neonsme(
2525
size_t mr, size_t nc, size_t kc, size_t ks, const void* lhs_packed,
2626
const void* rhs_packed, float* dst, size_t dst_stride_row,
2727
const struct xnn_f32_minmax_params* minmax_params) {
28-
28+
#if XNN_ENABLE_KLEIDIAI
2929
const size_t kai_kr = 1;
3030
const size_t k = ks * round_up(kc, kai_kr);
3131

32-
#if XNN_ENABLE_KLEIDIAI
3332
kai_run_matmul_clamp_f32_f32p2vlx1_f32p2vlx1b_2vlx2vl_sme_mopa(
3433
mr, nc, k , lhs_packed, rhs_packed, dst, dst_stride_row * sizeof(float),
3534
/*dst_stride_col=*/sizeof(float), minmax_params->scalar.min,

0 commit comments

Comments
 (0)