Skip to content

[SYCL][CUDA] Fix:Events not calling start for some commands #2028

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

Conversation

przemektmalon
Copy link
Contributor

This commit ensures that piEnqueueMemBufferCopy,
piEnqueueMemBufferFill and other commands call
start() and record() correctly if events are
requested from them.

Some command types are also changed to reflect the
actual command, for example cuda_piEnqueueMemBufferReadRect
not using the RECT version of the buffer read
command type.

Some event parameter names are also changed to provide
naming consistency throughout the code.

Signed-off-by: Przemek Malon [email protected]

@przemektmalon przemektmalon requested a review from a team as a code owner July 2, 2020 13:21
Copy link
Contributor

@romanovvlad romanovvlad left a comment

Choose a reason for hiding this comment

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

LGTM, Could you please add a test for record/start stuff?

@bader bader added the cuda CUDA back-end label Jul 8, 2020
@bader
Copy link
Contributor

bader commented Jul 8, 2020

@przemektmalon, could you resolve merge conflicts, please?

This commit ensures that `piEnqueueMemBufferCopy`,
`piEnqueueMemBufferFill` and other commands call
both `start()` and `record()` correctly if events are
requested from them. An assertion is added to ensure
this always happens from now on.

Some command types are also changed to reflect the
actual command, for example `cuda_piEnqueueMemBufferReadRect`
not using the `RECT` version of the buffer read
command type.

Some event parameter names are also changed to provide
naming consistency throughout the code.

Signed-off-by: Przemek Malon <[email protected]>
@przemektmalon przemektmalon force-pushed the przemek/cuda-fix-start-events-on-enqueue-commands branch from c96817a to 928a613 Compare July 8, 2020 21:46
@przemektmalon
Copy link
Contributor Author

przemektmalon commented Jul 8, 2020

LGTM, Could you please add a test for record/start stuff?

Added check in record function, now if record is called without calling start, PI_INVALID_EVENT will be returned and an exception thrown.

@przemektmalon
Copy link
Contributor Author

@przemektmalon, could you resolve merge conflicts, please?

@bader Updated

@bader bader requested a review from romanovvlad July 9, 2020 11:46
@bader bader merged commit a420e7a into intel:sycl Jul 9, 2020
@przemektmalon przemektmalon deleted the przemek/cuda-fix-start-events-on-enqueue-commands branch July 22, 2020 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda CUDA back-end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants