Arghh (#1397)
This commit is contained in:
parent
cda15bf175
commit
bb45cc3c74
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue