-
Notifications
You must be signed in to change notification settings - Fork 67
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
Clarify blocking behavior of queue::submit
#354
Clarify blocking behavior of queue::submit
#354
Conversation
<<command-group-function-object>> (as described in | ||
<<sec:command-groups-exec-order>>) in the calling thread, thereby scheduling a | ||
<<command-group>> for asynchronous execution. Any error in the submission of a | ||
<<command-group>> is handled by throwing a synchronous SYCL exceptions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<<command-group>> is handled by throwing a synchronous SYCL exceptions. | |
<<command-group>> is handled by throwing a synchronous SYCL exception. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, thanks.
<<sec:command-groups-exec-order>>) in the calling thread, thereby scheduling a | ||
<<command-group>> for asynchronous execution. Any error in the submission of a | ||
<<command-group>> is handled by throwing a synchronous SYCL exceptions. | ||
Any exceptions from the <<command-group>> after it has |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any exceptions from the <<command-group>> after it has | |
Any errors from the <<command-group>> after it has |
I think we mean errors more generally here, right? For example, an error from the underlying backend could cause the asynchronous error handler to be called. An exception from the application's host task could also cause the asynchronous error handler to be called, but we say that in the definition of host tasks.
Notably, exceptions in other commands are not guaranteed to call the asynchronous error handler (because exception are not allowed in device code).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. Not really related to this PR but I guess we can do a drive-by clarification :)
7758819
to
faf4526
Compare
will wait, need more time |
Clarify that the CGF provided to
queue::submit
is invoked in the calling thread.Resolves #307.