Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mutable dispatch related fixes #2143

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

franz
Copy link
Contributor

@franz franz commented Nov 6, 2024

No description provided.

@franz franz force-pushed the mutable_dispatch_fixes branch from c26f9eb to 2cdd0eb Compare November 6, 2024 19:00
franz and others added 3 commits November 27, 2024 16:54
…heck

the test checks 'cl_khr_extended_versioning' then immediately calls:
get_extension_version(device, "cl_khr_command_buffer_mutable_dispatch");
.. however, get_extension_version throws an exception when called
with unsupported extension.
the test uses CL_MUTABLE_DISPATCH_ARGUMENTS_KHR,
but does not check for support.
test MutableDispatchGlobalSize was failing (with an implementation that
doesn't support non-uniform WGs), because the update_global_size = 3
was not a multiple of the local work-size.

Fixed by increasing the global work-size to 256K and update size to 16K.
This should work with all devices that have max_work_group_size <= 16K.

Updates also MutableDispatchWorkGroups which had an out-of-bounds access,
because it hardcoded the value of global work-size.
@franz franz force-pushed the mutable_dispatch_fixes branch from 2cdd0eb to a2fc5d8 Compare November 27, 2024 14:54
@franz franz requested a review from EwanC November 27, 2024 15:53
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.

2 participants