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

[UR][hip][opencl] Mark urKernelSuggestMaxCooperativeGroupCountExp as unsupported instead of returning misleading default value #2038

Merged

Conversation

GeorgeWeb
Copy link
Contributor

@GeorgeWeb GeorgeWeb commented Aug 30, 2024

intel/llvm: intel/llvm#15369

@github-actions github-actions bot added the hip HIP adapter specific issues label Aug 30, 2024
@GeorgeWeb GeorgeWeb added the opencl OpenCL adapter specific issues label Sep 4, 2024
@GeorgeWeb GeorgeWeb marked this pull request as ready for review September 11, 2024 14:59
@GeorgeWeb GeorgeWeb requested review from a team as code owners September 11, 2024 14:59
Copy link
Contributor

@frasercrmck frasercrmck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me

@GeorgeWeb GeorgeWeb force-pushed the georgi/unsupported-max-coop-wgsize branch 3 times, most recently from fa515a0 to ed6fbad Compare September 27, 2024 15:20
…unsupported instead of returning misleading default value
@GeorgeWeb GeorgeWeb force-pushed the georgi/unsupported-max-coop-wgsize branch from ed6fbad to 55bd563 Compare October 2, 2024 11:20
@aarongreig aarongreig added the ready to merge Added to PR's which are ready to merge label Oct 2, 2024
@aarongreig aarongreig merged commit df6da35 into oneapi-src:main Oct 7, 2024
72 of 74 checks passed
martygrant pushed a commit to intel/llvm that referenced this pull request Oct 10, 2024
…xceeded launch limits on more backends (hip and opencl) (#15369)

The HIP and OpenCL backend implementations of the query had a default
return `1` group implementation, which is an incorrect assumptions. They
will now be marked as _Unsupported_ with the accompanying UR chagnes
(see oneapi-src/unified-runtime#2038), so for
these cases the `kernel_queue_specific::max_num_work_groups` launch
query will rely on the fallback that returns either `1` or `0` groups
based on hardware resource limitation checks for the kernel.

---------

Co-authored-by: Aaron Greig <aaron.greig@codeplay.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hip HIP adapter specific issues opencl OpenCL adapter specific issues ready to merge Added to PR's which are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants