KhronosGroup / KhronosGroup/OpenCL-CTS
Test `clSetKernelArg` preserves `cl_kernel` state on most error codes
- Dominant language
- C++
- Stars
- 232
- Forks
- 235
- Avg merge
- 8d 7h
- Merged PRs (30d)
- 18
Description
Assuming that this specification clarification merges (https://github.com/KhronosGroup/OpenCL-Docs/pull/705) there could be CTS tests that deliberately cause `clSetKernelArg` to return an error code but ensure that `cl_kernel` state is unmodified.
This could be done by setting a kernel argument correctly, try to overwrite that kernel argument with an input that will result in an error code, then check that the original argument was preserved via `clGetKernelArgInfo`.
Invalid inputs could be used to trigger any or all of these error codes:
- `CL_INVALID_KERNEL`
- `CL_INVALID_ARG_INDEX`
- `CL_INVALID_ARG_VALUE`
- `CL_INVALID_MEM_OBJECT`
- `CL_INVALID_SAMPLER`
- `CL_INVALID_DEVICE_QUEUE`
- `CL_INVALID_ARG_SIZE`
- `CL_MAX_SIZE_RESTRICTION_EXCEEDED`
- `CL_INVALID_ARG_VALUE`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the linked OpenCL-Docs specification clarification and locating existing OpenCL-CTS coverage for clSetKernelArg, clGetKernelArgInfo, and the listed error codes. Add cases that set an argument successfully, provoke each applicable error, and verify the original argument remains unchanged; done means the new CTS tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100