Skip to content

GPU OpenCL: take the offsets into mem_gpu from its device address, not from mDeviceMemoryBase - #16236

Merged
davidrohr merged 1 commit into
AliceO2Group:devfrom
ktf:pr16236
Nov 30, 2026
Merged

davidrohr merged 1 commit into
AliceO2Group:devfrom
ktf:pr16236

Conversation

@ktf

@ktf ktf commented Nov 30, 2026

Copy link
Copy Markdown
Member

With the double pipeline, the slave shares the master's mem_gpu, but its
mDeviceMemoryBase starts after the master's permanent memory. GPUMemCpy and
GPUMemClean16 computed the offsets into mem_gpu from mDeviceMemoryBase, so the
slave's copies and memory clears landed in the master's memory. Same fix as
"GPU Metal: make the double pipeline work, with the slave's offsets into the
shared buffers".

…t from mDeviceMemoryBase

With the double pipeline, the slave shares the master's mem_gpu, but its
mDeviceMemoryBase starts after the master's permanent memory. GPUMemCpy and
GPUMemClean16 computed the offsets into mem_gpu from mDeviceMemoryBase, so the
slave's copies and memory clears landed in the master's memory. Same fix as
"GPU Metal: make the double pipeline work, with the slave's offsets into the
shared buffers".
@ktf
ktf requested a review from davidrohr as a code owner November 30, 2026 07:42
@ktf

ktf commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

@davidrohr I have no way to verify this. It was done simply mirroring the fix I need for Metal and the doublePipeline to work.

@davidrohr

Copy link
Copy Markdown
Collaborator

It is of course right, that OpenCL is affected by the same problem as metal. So far I never was able to go further than TPC tracking with OpenCL, due to runtime and compiler issues, so the doublePipeline was never tested, and also right now cannot be tested. In any case, it looks correct, so merging.

@davidrohr
davidrohr merged commit 65d5ba0 into AliceO2Group:dev Nov 30, 2026
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.

2 participants