This commit is contained in:
Kawrakow
2026-03-10 18:28:35 +01:00
committed by GitHub
parent cda15bf175
commit bb45cc3c74

View File

@@ -544,6 +544,10 @@ ggml_backend_cuda_context::~ggml_backend_cuda_context() {
CUBLAS_CHECK(cublasDestroy(cublas_handles[i]));
}
}
auto info = const_cast<ggml_cuda_device_info*>(&ggml_cuda_info());
if (info->all_ctx[device] == this) {
info->all_ctx[device] = nullptr;
}
}