Skip to content

Commit

Permalink
revert unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
hipudding committed Jul 15, 2024
1 parent 6aec435 commit 25f653a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
15 changes: 0 additions & 15 deletions ggml/include/ggml.h
Original file line number Diff line number Diff line change
Expand Up @@ -2425,21 +2425,6 @@ extern "C" {

GGML_API ggml_type_traits_t ggml_internal_get_type_traits(enum ggml_type type);

struct ggml_compute_params {
// ith = thread index, nth = number of threads
int ith, nth;

// work buffer for all threads
size_t wsize;
void * wdata;

struct ggml_compute_state_shared * shared;
};

void ggml_compute_forward_rope(
const struct ggml_compute_params * params,
struct ggml_tensor * dst);

#ifdef __cplusplus
}
#endif
12 changes: 11 additions & 1 deletion ggml/src/ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -1754,8 +1754,18 @@ struct ggml_compute_state {
struct ggml_compute_state_shared * shared;
};

struct ggml_compute_params {
// ith = thread index, nth = number of threads
int ith, nth;


// work buffer for all threads
size_t wsize;
void * wdata;

struct ggml_compute_state_shared * shared;
};

//
// fundamental operations
//
Expand Down Expand Up @@ -14046,7 +14056,7 @@ static void ggml_compute_forward_rope_f16(
}
}

void ggml_compute_forward_rope(
static void ggml_compute_forward_rope(
const struct ggml_compute_params * params,
struct ggml_tensor * dst) {

Expand Down

0 comments on commit 25f653a

Please sign in to comment.