Skip to content

build: add call to find_package(OpenCL) in config.cmake.in #3335

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 1 commit into from
May 30, 2025

Conversation

AD2605
Copy link
Contributor

@AD2605 AD2605 commented May 27, 2025

Description

If building oneDNN, this line is hit during it's CMake configuration, it adds OpenCL::OpenCL as a target to be available in the dnnl-targets.cmake which is subsequently installed.

Applications which use such a build of oneDNN then require a find_package(OpenCL) for the target to be exposed which otherwise leads to CMake errors. This dependency is something which is ideally handled by oneDNN, and this PR adds the support for the same.

@AD2605 AD2605 requested a review from a team as a code owner May 27, 2025 15:55
@vpirogov
Copy link
Contributor

make test
test_scope=NIGHTLY
disable test_device_cpu
disable test_device_gpu

@AD2605
Copy link
Contributor Author

AD2605 commented May 29, 2025

It seems the clang-tidy check in the CI timed out

@vpirogov
Copy link
Contributor

make test
disable build_vendor_intel
disable test_device_cpu
enable arch_gpu_ampere
enable compiler_icx-oss

@AD2605 AD2605 force-pushed the atharva/add_opencl_dependency branch from a28a56e to 6f074a2 Compare May 30, 2025 10:50
@AD2605 AD2605 merged commit 2cb38a2 into uxlfoundation:main May 30, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants