Skip to content

GPU: provide the std type_traits subset used on Metal - #15794

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

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

Conversation

@ktf

@ktf ktf commented Sep 14, 2026

Copy link
Copy Markdown
Member

MSL has no standard library, so the handful of traits the GPU code relies on
are defined for METAL, as is already done for the other device compilers.

MSL has no standard library, so the handful of traits the GPU code relies on
are defined for __METAL__, as is already done for the other device compilers.
@ktf
ktf requested a review from davidrohr as a code owner September 14, 2026 12:17
@davidrohr

Copy link
Copy Markdown
Collaborator

I don't understand this PR. It seems to just copy and paste everything from the other architectures into a separate block for Metal. Why? Is this AI generated without having a look? I think it could be simplified significantly.
And actually, I don't really know why it is needed at all, since for GPU code except for CUDA and HIP we alraedy use the ad-hoc type_trairs replacement, so it should be active for METAL already.

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.

2 participants