Skip to content
Merged

Argghh #1397

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ggml/src/ggml-cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}

Expand Down