Skip to content

Commit 2faf20e

Browse files
ggerganovarthw
authored andcommitted
examples : adapt to ggml.h changes (ggml/0)
ggml-ci
1 parent a9f9483 commit 2faf20e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ggml/include/ggml.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,6 +1980,9 @@ extern "C" {
19801980
typedef void (*ggml_custom2_op_t)(struct ggml_tensor * dst , const struct ggml_tensor * a, const struct ggml_tensor * b, int ith, int nth, void * userdata);
19811981
typedef void (*ggml_custom3_op_t)(struct ggml_tensor * dst , const struct ggml_tensor * a, const struct ggml_tensor * b, const struct ggml_tensor * c, int ith, int nth, void * userdata);
19821982

1983+
#define GGML_N_TASKS_MAX (-1)
1984+
// n_tasks == GGML_N_TASKS_MAX means to use max number of tasks
1985+
19831986
GGML_API struct ggml_tensor * ggml_map_custom1(
19841987
struct ggml_context * ctx,
19851988
struct ggml_tensor * a,

ggml/src/ggml.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ void ggml_abort(const char * file, int line, const char * fmt, ...) {
313313
#define GGML_DEBUG 0
314314
#define GGML_GELU_FP16
315315
#define GGML_GELU_QUICK_FP16
316-
#define GGML_N_TASKS_MAX (-1)
317316

318317
#define GGML_SOFT_MAX_UNROLL 4
319318
#define GGML_VEC_DOT_UNROLL 2

0 commit comments

Comments
 (0)