Skip to content

Conversation

@MichaelRizkalla-arm
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Nov 12, 2025

CLA assistant check
All committers have signed the CLA.

@MichaelRizkalla-arm
Copy link
Contributor Author

Thanks for the review, I've addressed the comments.

I've also incorporated the changes from #1251 as this PR is intended to continue that work.

EwanC
EwanC previously approved these changes Nov 14, 2025
Copy link
Contributor

@EwanC EwanC left a comment

Choose a reason for hiding this comment

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

I haven't had a chance to run this code, but LGTM with some minor comments

return TEST_PASS;
}

template <size_t N> struct SVMCleanup
Copy link
Contributor

Choose a reason for hiding this comment

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

If we used the clSVMWrapper class more aggressively, could we get rid of SVMCleanup?

If clSVMWrapper is too rudimentary, could we enhance it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated clSVMWrapper to cover equality, and used it instead of SVMCleanup.

@bashbaug
Copy link
Contributor

Removing "focused review" until the comments above are addressed.

MichaelRizkalla-arm and others added 5 commits December 11, 2025 14:31
Use `clSetKernelArg` to set args after kernel is cloned. Enqueue and
read the buffer to validate.
The test uses `buf_write_kernel` kernel program with 2 arguments.

Signed-off-by: Michael Rizkalla <[email protected]>
Co-authored-by: Vikas Katariya <[email protected]>
Co-authored-by: Ahmed Hesham <[email protected]>
Add equality operators to `clSVMWrapper` to compare with `clSVMWrapper`
object or a `nullptr`.

Signed-off-by: Michael Rizkalla <[email protected]>
Use `clSetKernelExecInfo` after kernel is cloned and read the buffer
to validate.

The test uses the `set_kernel_exec_info_kernel` kernel program
with 2 arguments.

Signed-off-by: Michael Rizkalla <[email protected]>
Co-authored-by: Vikas Katariya <[email protected]>
Co-authored-by: Ahmed Hesham <[email protected]>
Clone a kernel with no args and enqueue.
The test uses `test_kernel_empty` kernel program with no arguments.

Signed-off-by: Michael Rizkalla <[email protected]>
Co-authored-by: Vikas Katariya <[email protected]>
Co-authored-by: Ahmed Hesham <[email protected]>
Use `clSetKernelArgSVMPointer` to set args after kernel is cloned.
Enqueue and read the buffer to validate.
The test uses `buf_write_kernel` kernel program with 2 arguments.

Signed-off-by: Michael Rizkalla <[email protected]>
Co-authored-by: Vikas Katariya <[email protected]>
Co-authored-by: Ahmed Hesham <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants