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

[HIP] Implement urKernelSuggestMaxCooperativeGroupCountExp for HIP #2617

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

Conversation

jinz2014
Copy link

@jinz2014 jinz2014 commented Jan 24, 2025

This commit follows the implementation #1796 to support the experimental urKernelSuggestMaxCooperativeGroupCountExp, for the HIP adapter, to retrieve the maximum number of cooperative groups that can be launched on the device.

Additionally, the changes also cache the result of the hipDeviceAttributeMultiprocessorCount query which is used to calculate the device-wide maximum cooperative groups, because the HIP occupancy query used has per multiprocessor semantics.

@jinz2014 jinz2014 requested a review from a team as a code owner January 24, 2025 22:13
@jinz2014 jinz2014 requested a review from ldrumm January 24, 2025 22:13
@jchlanda
Copy link
Contributor

cc @GeorgeWeb

@jchlanda jchlanda requested a review from GeorgeWeb January 27, 2025 08:24
&MaxNumActiveGroupsPerCU, hKernel->get(), localWorkSize,
dynamicSharedMemorySize));
detail::ur::assertion(MaxNumActiveGroupsPerCU >= 0);
// Handle the case where we can't have all SMs active with at least 1 group
Copy link
Contributor

Choose a reason for hiding this comment

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

I think AMD calls these WGPs (Work-Group Processors). SM is for Nvidia architectures.

@github-actions github-actions bot added the hip HIP adapter specific issues label Jan 27, 2025
Copy link
Contributor

@GeorgeWeb GeorgeWeb left a comment

Choose a reason for hiding this comment

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

Could you please describe the changes a little more in the description field of this PR? It is used as part of the final squashed commit's message alongside the title upon merge. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hip HIP adapter specific issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants