Diego Devesa commited on
Commit
237c05a
·
1 Parent(s): 9d74d85

ggml : fixes after sync (ggml/983)

Browse files

ggml : remove test-backend-buffer

ggml : fix CUDA build warnings

Files changed (1) hide show
  1. ggml/src/ggml-cuda.cu +2 -0
ggml/src/ggml-cuda.cu CHANGED
@@ -2448,6 +2448,7 @@ static void ggml_backend_cuda_synchronize(ggml_backend_t backend) {
2448
  GGML_UNUSED(backend);
2449
  }
2450
 
 
2451
  static void set_ggml_graph_node_properties(ggml_tensor * node, ggml_graph_node_properties * graph_node_properties) {
2452
  graph_node_properties->node_address = node->data;
2453
  graph_node_properties->node_op = node->op;
@@ -2498,6 +2499,7 @@ static bool ggml_graph_node_has_matching_properties(ggml_tensor * node, ggml_gra
2498
 
2499
  return true;
2500
  }
 
2501
 
2502
  static enum ggml_status ggml_backend_cuda_graph_compute(ggml_backend_t backend, ggml_cgraph * cgraph) {
2503
  ggml_backend_cuda_context * cuda_ctx = (ggml_backend_cuda_context *)backend->context;
 
2448
  GGML_UNUSED(backend);
2449
  }
2450
 
2451
+ #ifdef USE_CUDA_GRAPH
2452
  static void set_ggml_graph_node_properties(ggml_tensor * node, ggml_graph_node_properties * graph_node_properties) {
2453
  graph_node_properties->node_address = node->data;
2454
  graph_node_properties->node_op = node->op;
 
2499
 
2500
  return true;
2501
  }
2502
+ #endif
2503
 
2504
  static enum ggml_status ggml_backend_cuda_graph_compute(ggml_backend_t backend, ggml_cgraph * cgraph) {
2505
  ggml_backend_cuda_context * cuda_ctx = (ggml_backend_cuda_context *)backend->context;