Skip to content

Clone kernels svm#1550

Closed
JohnKesapidesARM wants to merge 2 commits intoKhronosGroup:mainfrom
JohnKesapidesARM:clone_kernels_svm
Closed

Clone kernels svm#1550
JohnKesapidesARM wants to merge 2 commits intoKhronosGroup:mainfrom
JohnKesapidesARM:clone_kernels_svm

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
@JohnKesapidesARM
Copy link
Contributor Author

rejecting. Vikas(original author) has moved on to a different project and this has been stale for a really long time

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