Skip to content

Handle CUDA_ERROR_DEINITIALIZED error in cu2umf_result() #1184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
3 changes: 3 additions & 0 deletions src/provider/provider_cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ static umf_result_t cu2umf_result(CUresult result) {
case CUDA_ERROR_INVALID_VALUE:
case CUDA_ERROR_INVALID_HANDLE:
return UMF_RESULT_ERROR_INVALID_ARGUMENT;
case CUDA_ERROR_DEINITIALIZED:
LOG_ERR("CUDA driver has been deinitialized");
return UMF_RESULT_ERROR_OUT_OF_RESOURCES;
default:
cu_store_last_native_error(result);
return UMF_RESULT_ERROR_MEMORY_PROVIDER_SPECIFIC;
Expand Down