Skip to content
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

Clone kernels svm #1550

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JohnKesapidesARM
Copy link
Contributor

Taking over PR #1251.
Minor rework from last review comments on that PR

jainvikas8 and others added 2 commits October 14, 2022 11:13
  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.

* In test_clone_kernel, if `clEnqueueReadBuffer` was a success then
  the error code would be `CL_SUCCESS`, which will not print the error
  message when buffer validation fails, therefore replace with
  `test_assert_error` to print the error message.

* Add test coverage for `clCloneKernel` with Execinfo
  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.

* Add test covergae for `clCloneKernel` with no args
  Clone a kernel with no args and enqueue.
  The test uses `test_kernel_empty` kernel program with no arguments.

* Add test coverge for `clCloneKernel` with SVM pointer
  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: Vikas Katariya <vikas.katariya@arm.com>
Signed-off-by: John Kesapides <john.kesapides@arm.com>
@JohnKesapidesARM
Copy link
Contributor Author

JohnKesapidesARM commented Oct 17, 2022

Upstreaming on behalf of ARM

@kpet kpet closed this Jul 9, 2024
@kpet kpet reopened this Jul 9, 2024
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.

3 participants