Skip to content

Conversation

@hdelan
Copy link
Contributor

@hdelan hdelan commented Nov 18, 2024

UR_CHECK_ERROR must be called within a try catch block, as it can throw.

For functions that don't return a ur_result_handle_t, and which might throw, make sure these funcs are only called within try catches in the caller funcs, and that they are not exposed to the user.

DPC++ PR: intel/llvm#16105

@hdelan hdelan requested a review from a team as a code owner November 18, 2024 11:20
@github-actions github-actions bot added cuda CUDA adapter specific issues hip HIP adapter specific issues command-buffer Command Buffer feature addition/changes/specification labels Nov 18, 2024
Copy link
Contributor

@keyradical keyradical left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@hdelan hdelan added the ready to merge Added to PR's which are ready to merge label Nov 19, 2024
@martygrant
Copy link
Contributor

@hdelan this PR has a conflict, if you could resolve that I'll get this merged today :)

UR_CHECK_ERROR must be called within a try catch block, as it can throw.

For functions that don't return a `ur_result_handle_t`, and which might
throw, make sure these funcs are only called within try catches in the
caller funcs, and that they are not exposed to the user.
@hdelan
Copy link
Contributor Author

hdelan commented Dec 12, 2024

Thanks @martygrant have rebased.

@martygrant martygrant merged commit 40d28e7 into oneapi-src:main Dec 12, 2024
73 checks passed
@martygrant
Copy link
Contributor

This will get pulled in as part of intel/llvm#15965

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command-buffer Command Buffer feature addition/changes/specification cuda CUDA adapter specific issues hip HIP adapter specific issues ready to merge Added to PR's which are ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants