Skip to content
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

[CUDA][HIP][CommandBuffer] Add try catches to anything that can throw #2336

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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.
Copy link
Contributor

@konradkusiak97 konradkusiak97 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
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.

3 participants