Skip to content

ITS: let the tracklet-finding device headers compile as Metal code - #16182

Open
ktf wants to merge 2 commits into
AliceO2Group:devfrom
ktf:pr16182
Open

ktf wants to merge 2 commits into
AliceO2Group:devfrom
ktf:pr16182

Conversation

@ktf

@ktf ktf commented Nov 23, 2026

Copy link
Copy Markdown
Member

ITS shared, needs agreement with the ITS GPU developers.

MSL, like OpenCL, has no standard library headers and needs program-scope
constants in the constant address space. Guard the std includes the device
code does not need, use GPUCommonArray/GPUCommonTypeTraits for std::array and
the traits, GPUglobalconstexpr for the namespace and static constants, keep the
MC label out of device code, give the device only the views of the ROF tables
(the tables themselves are built on the host), and rename two variables named
after MSL keywords (half, vertex). No change for CPU, CUDA and HIP.

ktf added 2 commits November 23, 2026 15:45
…ypeTraits

MSL has metal::numeric_limits but no std:: one, and no is_standard_layout_v
or is_trivially_copyable_v. Shared headers that use them in static_asserts or
type selections then compile for Metal unchanged.
ITS shared, needs agreement with the ITS GPU developers.

MSL, like OpenCL, has no standard library headers and needs program-scope
constants in the constant address space. Guard the std includes the device
code does not need, use GPUCommonArray/GPUCommonTypeTraits for std::array and
the traits, GPUglobalconstexpr for the namespace and static constants, keep the
MC label out of device code, give the device only the views of the ROF tables
(the tables themselves are built on the host), and rename two variables named
after MSL keywords (half, vertex). No change for CPU, CUDA and HIP.

This branch has not been deployed

No deployments
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