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

Load OPENCL extensions correctly. #63499

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Load OPENCL extensions correctly. #63499

merged 1 commit into from
Mar 15, 2024

Conversation

copybara-service[bot]
Copy link

Load OPENCL extensions correctly.

The existing implementation was incorrectly using loadOpenCLPointer to
load extension functions. The correct way to load extensions according to
the spec is the use clGetExtensionFunctionAddressForPlatform().

To ensure a less invasive change, add the function at the end of the
default GPU device creation.

@copybara-service copybara-service bot force-pushed the test_614647270 branch 3 times, most recently from 4c4038d to 2b56145 Compare March 15, 2024 09:10
The existing implementation was incorrectly using loadOpenCLPointer to
load extension functions. The correct way to load extensions according to
the spec is the use clGetExtensionFunctionAddressForPlatform().

To ensure a less invasive change, add the function at the end of the
default GPU device creation.

PiperOrigin-RevId: 616060484
@copybara-service copybara-service bot merged commit b635e90 into master Mar 15, 2024
1 check passed
@copybara-service copybara-service bot deleted the test_614647270 branch March 15, 2024 09:52
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.

None yet

1 participant