Skip to content

ITS GPU: move the tracklet kernel body into a header shared by the GPU backends - #16193

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

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

Conversation

@ktf

@ktf ktf commented Nov 25, 2026

Copy link
Copy Markdown
Member

ITS shared, needs agreement with the ITS GPU developers.

The CUDA/HIP kernel becomes a wrapper around a GPUd() function in
TrackingKernelsDevice.h, which another backend (Metal) can call from its own
kernel. The device span helpers move from Utils.h, which needs the CUDA/HIP
runtime, to DeviceSpan.h. Placement new becomes an assignment and atomicAdd
CAMath::AtomicAdd, both the same on CUDA/HIP. Not compiled with nvcc/hipcc
here (no CUDA/ROCm on this Mac).

…U backends

ITS shared, needs agreement with the ITS GPU developers.

The CUDA/HIP kernel becomes a wrapper around a GPUd() function in
TrackingKernelsDevice.h, which another backend (Metal) can call from its own
kernel. The device span helpers move from Utils.h, which needs the CUDA/HIP
runtime, to DeviceSpan.h. Placement new becomes an assignment and atomicAdd
CAMath::AtomicAdd, both the same on CUDA/HIP. Not compiled with nvcc/hipcc
here (no CUDA/ROCm on this Mac).
@ktf

ktf commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

@f3sch @mpuccio I have a few more similar to this. If you prefer to have full visibility, I can open the PR with the 6/7 commits with the full development for ITS on Metal.

@f3sch

f3sch commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

@ktf to see the full pr would be preferable thanks

@davidrohr

Copy link
Copy Markdown
Collaborator

actually, eventually I'd try to compile all kernels via the GPU framework, which will then automatically compile them for all backends, end provide the runKernel function to call them. We have the meeting on the 10th to discuss this already.

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.

3 participants