Skip to content

Commit 0b5a935

Browse files
committed
ggml : fix visibility and unused warnings
1 parent ec728e4 commit 0b5a935

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ggml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9124,7 +9124,7 @@ static void ggml_compute_forward_alibi_f32(
91249124
//const int nb3 = src0->nb[3];
91259125

91269126
assert(nb0 == sizeof(float));
9127-
assert(ne1+n_past == ne0);
9127+
assert(ne1 + n_past == ne0); (void) n_past;
91289128

91299129
// add alibi to src0 (KQ_scaled)
91309130
const int n_heads_log2_floor = 1 << (int) floor(log2(n_head));
@@ -9185,7 +9185,7 @@ static void ggml_compute_forward_alibi_f16(
91859185
//const int nb3 = src0->nb[3];
91869186

91879187
assert(nb0 == sizeof(ggml_fp16_t));
9188-
assert(ne1+n_past == ne0);
9188+
assert(ne1 + n_past == ne0); (void) n_past;
91899189

91909190
// add alibi to src0 (KQ_scaled)
91919191
const int n_heads_log2_floor = 1 << (int) floor(log2(n_head));

ggml.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,8 @@ extern "C" {
701701
struct ggml_tensor * c1);
702702

703703
// Mapping operations
704-
GGML_API typedef void (*ggml_unary_op_f32_t)(const int, float *, const float *);
705-
GGML_API typedef void (*ggml_binary_op_f32_t)(const int, float *, const float *, const float *);
704+
typedef void (*ggml_unary_op_f32_t)(const int, float *, const float *);
705+
typedef void (*ggml_binary_op_f32_t)(const int, float *, const float *, const float *);
706706

707707
GGML_API struct ggml_tensor * ggml_map_unary_f32(
708708
struct ggml_context * ctx,

0 commit comments

Comments
 (0)