Skip to content

GPU: more constexpr cleanups to support Metal - #15830

Merged
ktf merged 2 commits into
AliceO2Group:devfrom
ktf:pr15830
Sep 22, 2026
Merged

ktf merged 2 commits into
AliceO2Group:devfrom
ktf:pr15830

Conversation

@ktf

@ktf ktf commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

No description provided.

ktf added 2 commits September 22, 2026 17:29
MSL has no static storage duration inside a function. These are all scalar
constexpr values used as compile-time constants, so removing static changes
nothing for any backend: none of them is odr-used, and no storage was ever
emitted for them.
@ktf ktf changed the title GPUTracking: drop static from the function-scope constants GPU: more constexpr cleanups to support Metal Sep 22, 2026
@ktf

ktf commented Sep 22, 2026

Copy link
Copy Markdown
Member Author

@davidrohr two more commits. Was there any reason for the static? As far as I can tell nothing gets a pointer of those variables, no?

@davidrohr

Copy link
Copy Markdown
Collaborator

I guess it was pre-c++11 code, where it was static const.
I don't see a problem dropping the static.
At some point when you are done, we should just check that the performance was unaffected by your changes.

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for 59e0aa1 at 2026-09-22 19:55:

No log files found

Full log here.

@ktf
ktf merged commit 86a1ec8 into AliceO2Group:dev Sep 22, 2026
10 of 11 checks passed
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