Fix error code checked in command-buffer negative_enqueue_inconsistent_device #2875
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 273 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.336
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2875"
general
weight: 0.35
joselopeqti
The command-buffer
negative_enqueue_inconsistent_devicetest is a negative test that theCL_INVALID_DEVICEerror code is returned as defined by the clEnqueueCommandBufferKHR entry point spec wording.However, there is a typo in this test and it is checking for the
CL_INCOMPATIBLE_COMMAND_QUEUE_KHRerror code rather thanCL_INVALID_DEVICE. This was found by bug report https://github.com/KhronosGroup/OpenCL-CTS/issues/2872 and has probably been hidden until now as to run the test a platform with more than 1 device is needed, which is a less common setup.As pointed in the the PR feedback there were other underlying issues with the test, primarily that the harness always created single device contexts so the test will always be skipped. Addressed by using the
GetOpposingDevicehelper to find an alternative device, then the tests own context, queues, and command-buffer with it.Additionally I've installed rusticl locally so I can get access to a platform with more than one device, and ran the test against the emulation layer which supports command-buffers v1.0. In this setup the test passes, so hopefully this gives us enough confidence in the fix
Closes https://github.com/KhronosGroup/OpenCL-CTS/issues/2872