Skip to content

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

Merged
ktf merged 1 commit into
AliceO2Group:devfrom
ktf:pr16182
Nov 25, 2026
Merged

ktf merged 1 commit 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/
GPUCommonNumericLimits for std::array, the traits and numeric_limits,
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.

f3sch
f3sch previously approved these changes Nov 23, 2026
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/
GPUCommonNumericLimits for std::array, the traits and numeric_limits,
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

ktf commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

@f3sch rebased on the some common GPU development which included @davidrohr suggestions.

@ktf
ktf merged commit 685d176 into AliceO2Group:dev Nov 25, 2026
16 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.

2 participants