Skip to content

[UR][CUDA][HIP] Add missing catch for native commands #17524

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
merged 1 commit into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions unified-runtime/source/adapters/cuda/enqueue_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueNativeCommandExp(
return Err;
} catch (CUresult CuErr) {
return mapErrorUR(CuErr);
} catch (...) {
return UR_RESULT_ERROR_UNKNOWN;
}
return UR_RESULT_SUCCESS;
}
2 changes: 2 additions & 0 deletions unified-runtime/source/adapters/hip/enqueue_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueNativeCommandExp(
return Err;
} catch (hipError_t hipErr) {
return mapErrorUR(hipErr);
} catch (...) {
return UR_RESULT_ERROR_UNKNOWN;
}
return UR_RESULT_SUCCESS;
}