diff --git a/ggml/src/ggml-cpu/ops.cpp b/ggml/src/ggml-cpu/ops.cpp index fe0e4375b9..3547277d96 100644 --- a/ggml/src/ggml-cpu/ops.cpp +++ b/ggml/src/ggml-cpu/ops.cpp @@ -7066,6 +7066,7 @@ static void ggml_compute_forward_im2col_3d_f16( const int64_t IW = ne10; const int64_t OC = ne03 / IC; + GGML_UNUSED(OC); const int64_t KD = ne02; const int64_t KH = ne01; const int64_t KW = ne00; @@ -7156,6 +7157,7 @@ static void ggml_compute_forward_im2col_3d_f32( const int64_t IW = ne10; const int64_t OC = ne03 / IC; + GGML_UNUSED(OC); const int64_t KD = ne02; const int64_t KH = ne01; const int64_t KW = ne00; diff --git a/ggml/src/ggml.c b/ggml/src/ggml.c index 4f3f66c4a4..e025977508 100644 --- a/ggml/src/ggml.c +++ b/ggml/src/ggml.c @@ -4387,6 +4387,7 @@ struct ggml_tensor * ggml_im2col_3d( const int64_t IW = b->ne[0]; const int64_t OC = a->ne[3] / IC; + UNUSED(OC); const int64_t KD = a->ne[2]; const int64_t KH = a->ne[1]; const int64_t KW = a->ne[0]; diff --git a/tests/test-backend-ops.cpp b/tests/test-backend-ops.cpp index 2171a22d51..12ffa4b328 100644 --- a/tests/test-backend-ops.cpp +++ b/tests/test-backend-ops.cpp @@ -4196,7 +4196,7 @@ struct test_conv_3d : public test_case { return (uint64_t)N * OC * OD * OH * OW * (2 * IC * KD * KH * KW - 1); } - test_conv_3d_direct( + test_conv_3d( int64_t N, int64_t IC, int64_t ID, int64_t IH, int64_t IW, int64_t OC, int64_t KD, int64_t KH, int64_t KW, int s0, int s1, int s2,