Skip to content

[SYCL][UR] Improve support for preinstalled OpenCL deps #19649

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

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

sarnex
Copy link
Contributor

@sarnex sarnex commented Jul 30, 2025

Unify OpenCL detection logic to improve packaging for Linux distros.

Right now two different projects, opencl-aot and the UR OCL plugin depend on OpenCL (both the headers and the ICD loader)

They both have their own detection logic and CMake variables to use a preinstalled version.

Move the detection logic to using the standard find_package and unify the logic.

There are now no CMake variables to specify the repo, commit or install directory. If find_package files because the install is in a weird location, the user should add the path to CMAKE_MODULE_PATH.

Improvement of our OpenCL handling was directly requested by NixOS developers, see below issue.

Issue: #19635

@sarnex sarnex temporarily deployed to WindowsCILock July 31, 2025 22:32 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock August 1, 2025 00:01 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock August 1, 2025 00:01 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock August 1, 2025 01:30 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock August 1, 2025 01:30 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock August 1, 2025 02:19 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock August 1, 2025 02:19 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock August 1, 2025 19:52 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock August 1, 2025 20:43 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock August 1, 2025 20:43 — with GitHub Actions Inactive
@sarnex sarnex marked this pull request as ready for review August 1, 2025 20:55
@sarnex sarnex requested review from a team as code owners August 1, 2025 20:55
@sarnex sarnex requested review from reble and cperkinsintel August 1, 2025 20:55
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