Skip to content

[SYCL] Fix exception duplication for copy back command #14622

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 6 commits into from
Aug 12, 2024

Conversation

KseniyaTikhomirova
Copy link
Contributor

kernel_features_device_has_exceptions fails due to duplication of sync and async exceptions when command before copy back (copy back dependency) fails. This commit adds check if failed command is really some of copy back related commands or something already reported.
Except from this it makes enqueueImp for mem copy host command handle exception instead of ignoring and bypassing (MemoryManager operations return void and throws exceptions) to enable proper enqueueCommand results handling.

Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
@KseniyaTikhomirova
Copy link
Contributor Author

in addition to description - I will create a task for proper handling of MemoryManager operations in enqueueImp for other commands. I am really confident current behavior with exceptions is not what we expect to have because it makes enqueueCommand error handling and reporting useless.

@KseniyaTikhomirova KseniyaTikhomirova marked this pull request as ready for review July 18, 2024 11:34
@KseniyaTikhomirova KseniyaTikhomirova requested a review from a team as a code owner July 18, 2024 11:34
@KseniyaTikhomirova
Copy link
Contributor Author

would be better to merge #14145 first, so that I could easily update UT with ur api usage.

@KseniyaTikhomirova
Copy link
Contributor Author

it is been a week since this PR was approved and plugin interface removal is still not merged. I think there is no sense in waiting then.

@intel/llvm-gatekeepers this PR is ready for merge, thanks

@aarongreig
Copy link
Contributor

we are going to merge #14145 today if you don't mind waiting a little longer

@KseniyaTikhomirova
Copy link
Contributor Author

we are going to merge #14145 today if you don't mind waiting a little longer

cool, waiting.

@KseniyaTikhomirova
Copy link
Contributor Author

@intel/llvm-gatekeepers hi, this PR is ready for merge, thanks

@martygrant martygrant merged commit a3d33b2 into intel:sycl Aug 12, 2024
13 checks passed
sarnex pushed a commit that referenced this pull request Aug 12, 2024
AlexeySachkov pushed a commit to AlexeySachkov/llvm that referenced this pull request Nov 26, 2024
kernel_features_device_has_exceptions fails due to duplication of sync
and async exceptions when command before copy back (copy back
dependency) fails. This commit adds check if failed command is really
some of copy back related commands or something already reported.
Except from this it makes enqueueImp for mem copy host command handle
exception instead of ignoring and bypassing (MemoryManager operations
return void and throws exceptions) to enable proper enqueueCommand
results handling.

---------

Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants