Skip to content

command buffer emulation layer fixes and improvements - #184

Merged
bashbaug merged 6 commits into
mainfrom
cl_khr_command_buffer-native-checks
Nov 16, 2026
Merged

bashbaug merged 6 commits into
mainfrom
cl_khr_command_buffer-native-checks

Conversation

@bashbaug

Copy link
Copy Markdown
Owner

This PR adds several fixes and improvements to the command buffer emulation layer. The high-level goal for these changes is to allow the command buffer emulation layer to exist as a system layer, providing support for command buffers to OpenCL implementations that do not support command buffers but transparently using native command buffer support for OpenCL implementations that do support command buffers.

Changes in this PR are as follows:

  1. Add detection for OpenCL implementations that support command buffers, and do not emulate command buffers when native support is available. By default, if any device in a platform supports command buffers, no emulation is performed.
  2. Add an environment variable control to unconditionally emulate command buffers even when command buffers are supported natively. The same control also can be used to unconditionally skip emulation. These controls can simplify debugging and performance analysis.
  3. Add several missing error checks to the command buffer emulation layer. With these error checks in place, the command buffer emulation layer is now fully conformant on some devices.

@bashbaug
bashbaug merged commit 70a15bf into main Nov 16, 2026
19 checks passed
@bashbaug
bashbaug deleted the cl_khr_command_buffer-native-checks branch November 16, 2026 03:08
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.

1 participant