CUDA : fix unused argument when USE_CUDA_GRAPH=OFF (#18800)

This commit is contained in:
Georgi Gerganov 2026-01-13 12:25:53 +02:00 committed by GitHub
parent 076b0faf7d
commit 0a57271ab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -3737,6 +3737,7 @@ static bool ggml_cuda_graph_set_enabled(ggml_backend_cuda_context * cuda_ctx) {
return cuda_ctx->cuda_graph->is_enabled();
#else
GGML_UNUSED(cuda_ctx);
return false;
#endif // USE_CUDA_GRAPH
}