Skip to content

Commit d9c9203

Browse files
authored
Merge branch 'ggerganov:master' into master
2 parents 41e1665 + 1788077 commit d9c9203

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

ggml/include/ggml-alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ GGML_API void ggml_tallocr_alloc(struct ggml_tallocr * talloc, st
2424
// Graph allocator
2525
/*
2626
Example usage:
27-
ggml_gallocr_t galloc = ggml_gallocr_new(ggml_bacckend_cpu_buffer_type());
27+
ggml_gallocr_t galloc = ggml_gallocr_new(ggml_backend_cpu_buffer_type());
2828
2929
// optional: create a worst-case graph and reserve the buffers to avoid reallocations
3030
ggml_gallocr_reserve(galloc, build_graph(max_batch));

ggml/src/ggml-cuda.cu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2448,6 +2448,7 @@ static void ggml_backend_cuda_synchronize(ggml_backend_t backend) {
24482448
GGML_UNUSED(backend);
24492449
}
24502450

2451+
#ifdef USE_CUDA_GRAPH
24512452
static void set_ggml_graph_node_properties(ggml_tensor * node, ggml_graph_node_properties * graph_node_properties) {
24522453
graph_node_properties->node_address = node->data;
24532454
graph_node_properties->node_op = node->op;
@@ -2498,6 +2499,7 @@ static bool ggml_graph_node_has_matching_properties(ggml_tensor * node, ggml_gra
24982499

24992500
return true;
25002501
}
2502+
#endif
25012503

25022504
static enum ggml_status ggml_backend_cuda_graph_compute(ggml_backend_t backend, ggml_cgraph * cgraph) {
25032505
ggml_backend_cuda_context * cuda_ctx = (ggml_backend_cuda_context *)backend->context;

scripts/sync-ggml.last

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e5c233e5edbfcfa1d808b9293de9065035c40751
1+
b77f48b1efa671e094696b99fbf566aac8c87d74

0 commit comments

Comments
 (0)