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

Use extension version of clGetKernelSubGroupInfo when necessary. #2258

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

Conversation

aarongreig
Copy link
Contributor

We do support at least one device (fpga emulator) that reports a cl version of < 2.1 and supports subgroups, in that scenario we need query out and use the KHR version of the entry point.

@aarongreig
Copy link
Contributor Author

LLVM PR: intel/llvm#15896

@aarongreig aarongreig force-pushed the aaron/tryUseExtensionSubgroupInfo branch from 8d27b5c to bb58458 Compare October 29, 2024 12:20
@aarongreig aarongreig marked this pull request as ready for review October 29, 2024 12:20
@aarongreig aarongreig requested a review from a team as a code owner October 29, 2024 12:20
cl_adapter::cast<cl_device_id>(hDevice), CL_DEVICE_PLATFORM,
sizeof(Platform), &Platform, nullptr));
GetKernelSubGroupInfo =
reinterpret_cast<ApiFuncT>(clGetExtensionFunctionAddressForPlatform(
Copy link
Contributor

Choose a reason for hiding this comment

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

We should use the extension function pointer cache for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Huh yeah forgot we had those, I cribbed from ProgramCreateWithIL when I wrote this since it's a similar cl version situation there, updated that as well

We do support at least one device (fpga emulator) that reports a cl
version of < 2.1 and supports subgroups, in that scenario we need query
out and use the KHR version of the entry point.
@aarongreig aarongreig force-pushed the aaron/tryUseExtensionSubgroupInfo branch from bb58458 to d60c964 Compare October 31, 2024 17:45
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