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

[OpenCL] Add version check for urProgramSetSpecializationConstants #968

Conversation

martygrant
Copy link
Contributor

@martygrant martygrant commented Oct 17, 2023

Adds a version check to only look up the extension function pointer for urProgramSetSpecializationConstants if the platform or any attached device OpenCL version is < 2.2. Also fixes minor build error with missing namespace in enqueue.cpp.

intel-llvm PR - intel/llvm#11720

@martygrant martygrant requested a review from a team as a code owner October 17, 2023 14:15
source/adapters/opencl/program.cpp Outdated Show resolved Hide resolved
@martygrant martygrant force-pushed the martin/versionCheckSpecializationConstants branch from dfdadef to 1a5146f Compare October 18, 2023 14:11
@martygrant martygrant changed the title [SYCL][OpenCL] Add version check for urProgramSetSpecializationConstants [OpenCL] Add version check for urProgramSetSpecializationConstants Oct 18, 2023
@martygrant martygrant force-pushed the martin/versionCheckSpecializationConstants branch from 1a5146f to 09ee4c0 Compare October 18, 2023 15:38
@martygrant martygrant force-pushed the martin/versionCheckSpecializationConstants branch from 09ee4c0 to bd362a1 Compare October 31, 2023 10:55
source/adapters/opencl/program.cpp Outdated Show resolved Hide resolved
@kbenzie kbenzie added the ready to merge Added to PR's which are ready to merge label Oct 31, 2023
@martygrant martygrant force-pushed the martin/versionCheckSpecializationConstants branch from bd362a1 to f2a365c Compare November 1, 2023 14:15
@kbenzie kbenzie merged commit ba994bb into oneapi-src:adapters Nov 3, 2023
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants