cuda : fix compile warnings (whisper/0)
This commit is contained in:
parent
bbada8bfb9
commit
dfd6106c84
|
|
@ -3910,14 +3910,14 @@ static void ggml_cuda_graph_evaluate_and_capture(ggml_backend_cuda_context * cud
|
||||||
// Launch graph
|
// Launch graph
|
||||||
CUDA_CHECK(cudaGraphLaunch(graph->instance, cuda_ctx->stream()));
|
CUDA_CHECK(cudaGraphLaunch(graph->instance, cuda_ctx->stream()));
|
||||||
#else
|
#else
|
||||||
|
GGML_UNUSED(graph_key);
|
||||||
graph_evaluated_or_captured = true;
|
graph_evaluated_or_captured = true;
|
||||||
#endif // USE_CUDA_GRAPH
|
#endif // USE_CUDA_GRAPH
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool ggml_cuda_graph_set_enabled(ggml_backend_cuda_context * cuda_ctx, const void * graph_key) {
|
|
||||||
|
|
||||||
#ifdef USE_CUDA_GRAPH
|
#ifdef USE_CUDA_GRAPH
|
||||||
|
static bool ggml_cuda_graph_set_enabled(ggml_backend_cuda_context * cuda_ctx, const void * graph_key) {
|
||||||
ggml_cuda_graph * graph = cuda_ctx->cuda_graph(graph_key);
|
ggml_cuda_graph * graph = cuda_ctx->cuda_graph(graph_key);
|
||||||
|
|
||||||
if (graph->graph == nullptr) {
|
if (graph->graph == nullptr) {
|
||||||
|
|
@ -3930,12 +3930,8 @@ static bool ggml_cuda_graph_set_enabled(ggml_backend_cuda_context * cuda_ctx, co
|
||||||
}
|
}
|
||||||
|
|
||||||
return graph->is_enabled();
|
return graph->is_enabled();
|
||||||
#else
|
|
||||||
GGML_UNUSED(cuda_ctx);
|
|
||||||
GGML_UNUSED(graph_key);
|
|
||||||
return false;
|
|
||||||
#endif // USE_CUDA_GRAPH
|
|
||||||
}
|
}
|
||||||
|
#endif // USE_CUDA_GRAPH
|
||||||
|
|
||||||
static enum ggml_status ggml_backend_cuda_graph_compute(ggml_backend_t backend, ggml_cgraph * cgraph) {
|
static enum ggml_status ggml_backend_cuda_graph_compute(ggml_backend_t backend, ggml_cgraph * cgraph) {
|
||||||
ggml_backend_cuda_context * cuda_ctx = (ggml_backend_cuda_context *) backend->context;
|
ggml_backend_cuda_context * cuda_ctx = (ggml_backend_cuda_context *) backend->context;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue