Skip to content

GPU: stop considering OpenCL on macOS - #15815

Open
ktf wants to merge 1 commit into
AliceO2Group:devfrom
ktf:pr15815
Open

ktf wants to merge 1 commit into
AliceO2Group:devfrom
ktf:pr15815

Conversation

@ktf

@ktf ktf commented Sep 18, 2026

Copy link
Copy Markdown
Member

macOS ships OpenCL 1.2, below the 2.x the OpenCL backend requires, so
find_package(OpenCL) there could never produce a usable backend: the version
check dropped it again a few lines later. Skip the lookup on Apple instead.

With that, CUDA_ENABLED, OPENCL_ENABLED and HIP_ENABLED are all necessarily
off on macOS, which makes the Darwin arm of the backend dispatch dead code.
Drop it along with its warning and unindent the rest.


Stack created with Sapling. Best reviewed with ReviewStack.

@ktf
ktf requested review from a team and davidrohr as code owners September 18, 2026 08:01
macOS ships OpenCL 1.2, below the 2.x the OpenCL backend requires, so
find_package(OpenCL) there could never produce a usable backend: the version
check dropped it again a few lines later. Skip the lookup on Apple instead.

With that, CUDA_ENABLED, OPENCL_ENABLED and HIP_ENABLED are all necessarily
off on macOS, which makes the Darwin arm of the backend dispatch dead code.
Drop it along with its warning and unindent the rest.
@alibuild

alibuild commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for 5dd98e4 at 2026-09-19 08:34:

No log files found

Full log here.

@davidrohr

Copy link
Copy Markdown
Collaborator

Looks good, but you have to update alidist/resources/FindO2GPU.cmalke first, and raise its version in the comment at the beginning, then update the one in O2.

@ktf

ktf commented Sep 18, 2026

Copy link
Copy Markdown
Member Author

@davidrohr yes, i noticed. I will take care of it.

@alibuild

alibuild commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for e335dfc at 2026-09-20 13:57:

No log files found

Full log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants