KhronosGroup / KhronosGroup/OpenCL-CTS
commonfns: test_unary_fn returns CL_DEVICE_NOT_FOUND on verification failure instead of appropriate error
- Dominant language
- C++
- Stars
- 232
- Forks
- 235
- Avg merge
- 8d 7h
- Merged PRs (30d)
- 18
Description
In the commonfs test, the test_unary_fn test case returns -1 if the calculated values are not equal to the reference values.
Excerpt from the test_unary_fn test case:
``` Cpp
if (verifyFn((T *)&input_ptr.front(), (T *)&output_ptr.front(),
n_elems * (i + 1)))
{
log_error("%s %s%d test failed\n", fnName.c_str(), tname.c_str(),
((g_arrVecSizes[i])));
err = -1;
}
```
The -1 code corresponds to CL_DEVICE_NOT_FOUND.
Maybe in this case, you need to change the error code to another one? CL_DEVICE_NOT_FOUND may be misleading.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the commonfns test and the test_unary_fn case, focusing on the verification-failure branch shown in the issue. Check which OpenCL error code represents a calculated-value mismatch rather than CL_DEVICE_NOT_FOUND, then confirm the test reports that code when verification fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100