Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ggml : hide ggml_object, ggml_cgraph, ggml_hash_set #9408

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

ggerganov
Copy link
Owner

@ggerganov ggerganov commented Sep 10, 2024

Hide some ggml structs from the public API

Further changes in a similar spirit are in a separate PR: #9431

@github-actions github-actions bot added testing Everything test related examples ggml changes relating to the ggml tensor library for machine learning labels Sep 10, 2024
@github-actions github-actions bot added Vulkan Issues specific to the Vulkan backend SYCL https://en.wikipedia.org/wiki/SYCL - GPU programming language Kompute https://github.com/KomputeProject/kompute/ labels Sep 11, 2024
@ggerganov ggerganov changed the title ggml : hide ggml_object, ggml_cgraph, ggml_hash_set ggml : hide struct + rework ggml_cgraph Sep 11, 2024
@ggerganov ggerganov changed the title ggml : hide struct + rework ggml_cgraph ggml : hide structs + rework ggml_cgraph Sep 11, 2024
@ggerganov ggerganov changed the title ggml : hide structs + rework ggml_cgraph ggml : hide ggml_object, ggml_cgraph, ggml_hash_set Sep 11, 2024
@ggerganov ggerganov marked this pull request as ready for review September 11, 2024 10:12
@ggerganov ggerganov requested a review from slaren September 11, 2024 10:13
ggml/src/ggml.c Outdated
Comment on lines 19204 to 19207
void ggml_graph_add_node(struct ggml_cgraph * cgraph, struct ggml_tensor * tensor) {
cgraph->nodes[cgraph->n_nodes] = tensor;
cgraph->n_nodes++;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GGML_ASSERT(cgraph->size > cgraph->n_nodes)

@ggerganov ggerganov added the merge ready indicates that this may be ready to merge soon and is just holding out in case of objections label Sep 12, 2024
@ggerganov ggerganov merged commit d6a04f8 into master Sep 12, 2024
53 checks passed
@ggerganov ggerganov deleted the gg/ggml-hide-structs branch September 12, 2024 11:23
dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
* ggml : hide ggml_object, ggml_cgraph, ggml_hash_set

ggml-ci

* ggml : add ggml-impl.h to backends

* ggml : fix compiler warnings

ggml-ci

* ggml : add assert upon adding nodes
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 15, 2024
* ggml : hide ggml_object, ggml_cgraph, ggml_hash_set

ggml-ci

* ggml : add ggml-impl.h to backends

* ggml : fix compiler warnings

ggml-ci

* ggml : add assert upon adding nodes
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 18, 2024
* ggml : hide ggml_object, ggml_cgraph, ggml_hash_set

ggml-ci

* ggml : add ggml-impl.h to backends

* ggml : fix compiler warnings

ggml-ci

* ggml : add assert upon adding nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples ggml changes relating to the ggml tensor library for machine learning Kompute https://github.com/KomputeProject/kompute/ merge ready indicates that this may be ready to merge soon and is just holding out in case of objections SYCL https://en.wikipedia.org/wiki/SYCL - GPU programming language testing Everything test related Vulkan Issues specific to the Vulkan backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants