cuda : print less debug logs when disabling cuda graphs (#18868)
This commit is contained in:
@@ -3730,9 +3730,11 @@ static bool ggml_cuda_graph_set_enabled(ggml_backend_cuda_context * cuda_ctx) {
|
|||||||
|
|
||||||
if (cuda_ctx->cuda_graph->graph == nullptr) {
|
if (cuda_ctx->cuda_graph->graph == nullptr) {
|
||||||
if (ggml_cuda_info().devices[cuda_ctx->device].cc < GGML_CUDA_CC_AMPERE) {
|
if (ggml_cuda_info().devices[cuda_ctx->device].cc < GGML_CUDA_CC_AMPERE) {
|
||||||
cuda_ctx->cuda_graph->disable_due_to_gpu_arch = true;
|
if (!cuda_ctx->cuda_graph->disable_due_to_gpu_arch) {
|
||||||
GGML_LOG_DEBUG("%s: disabling CUDA graphs due to GPU architecture\n", __func__);
|
GGML_LOG_DEBUG("%s: disabling CUDA graphs due to GPU architecture\n", __func__);
|
||||||
}
|
}
|
||||||
|
cuda_ctx->cuda_graph->disable_due_to_gpu_arch = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return cuda_ctx->cuda_graph->is_enabled();
|
return cuda_ctx->cuda_graph->is_enabled();
|
||||||
|
|||||||
Reference in New Issue
Block a user