Skip to content

[SYCL] Fix Kernel Compiler OpenCLC_Supports_Extension #14959

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

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

bso-intel
Copy link
Contributor

@bso-intel bso-intel commented Aug 5, 2024

The optional parameter VersionPtr is nullptr by default. But, the code assumes it is a valid pointer.
So, the fix is to guard with an if conditional phrase.

The optional parameter VersionPtr is nullptr by default.
But, the code assumes it is a valid pointer.
So, the fix is to guard with an "if" conditional phrase.
@bso-intel bso-intel requested a review from a team as a code owner August 5, 2024 21:02
Copy link
Contributor

@aelovikov-intel aelovikov-intel left a comment

Choose a reason for hiding this comment

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

Tests are missing for a bugfix PR.

@bso-intel
Copy link
Contributor Author

Tests are missing for a bugfix PR.

Added tests ext_oneapi_support_cl_extension() without versionPtr parameter set.

@aelovikov-intel aelovikov-intel merged commit b2de40e into intel:sycl Aug 6, 2024
14 checks passed
@bso-intel bso-intel deleted the has-extension branch August 6, 2024 17:23
AlexeySachkov pushed a commit to AlexeySachkov/llvm that referenced this pull request Nov 26, 2024
The optional parameter `VersionPtr` is `nullptr` by default. But, the
code assumes it is a valid pointer.
So, the fix is to guard with an `if` conditional phrase.
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