-
Notifications
You must be signed in to change notification settings - Fork 770
[SYCL][Graph] Modified the adapters such that it is valid to call release on... #18619
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
base: sycl
Are you sure you want to change the base?
Conversation
…le it is executing
cce454f
to
8e70e5c
Compare
@@ -1175,6 +1178,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueCommandBufferExp( | |||
if (phEvent) { | |||
UR_CHECK_ERROR(RetImplEvent->record()); | |||
*phEvent = RetImplEvent.release(); | |||
hCommandBuffer->CurrentExecution = *phEvent; |
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.
Will this solution work if the UR caller doesn't pass a phEvent
to urEnqueueCommandBufferExp
, and then does a command-buffer release? Note, this is what your CTS test does.
@@ -310,7 +310,7 @@ returns: | |||
- $X_RESULT_ERROR_OUT_OF_HOST_MEMORY | |||
--- #-------------------------------------------------------------------------- | |||
type: function | |||
desc: "Decrement the command-buffer object's reference count and delete the command-buffer object if the reference count becomes zero." | |||
desc: "Decrement the command-buffer object's reference count and delete the command-buffer object if the reference count becomes zero. It will try synchronizing the command-buffer, hence it is legal to call it while command-buffer is still executing." |
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.
"It will try synchronizing the command-buffer," makes it sound like this will happen even if the reference count isn't zero. So would flip round the two phrases, something like
It is legal to call the entry-point while
hCommandBuffer
is still executing, which will block on completion if the reference count ofhCommandBuffer
becomes zero.
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.
That sounds better, thanks 👍
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.
I think we need to call the generate
build target to regenerate the doyxgen in the headers.
Command Buffer, while it is still executing.