GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GPU: more blocks for the kernels with long-running threads on Metal by ktf · Pull Request #16109 · AliceO2Group/AliceO2

Conversation

@ktf

@ktf ktf commented Nov 12, 2026

Copy link
Copy Markdown
Member

macOS fails a command buffer with "Impacting Interactivity" when its thread
groups do not finish in time for the GPU to be handed to another context.
The kernels launched with a fixed grid loop over their work with the grid as
stride, so with few blocks every thread group runs for as long as the
dispatch. At 30 kHz Pb-Pb that is too long: with 4 sectors of a time frame
the tracklet constructor, running for several sectors at once on 32 or 64
blocks, is killed after 50 to 200 ms in every run, and passes from 128
blocks on; on the full time frame the looper following, 512 groups of one
thread, is killed after 0.5 s. The track fit, 3.1 s in one dispatch of 8236
short blocks, is not.

Launch the tracklet constructor on 1024 blocks, the looper following on
2048 blocks of 32 threads (2 to 3 times faster than 512 single threads),
and the sector refit, which also runs for several sectors at once, on 256.
The compression of the unattached clusters gets 2048 blocks, from its time
on a part of the time frame: it was not reached on a full one yet.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ktf
GPU: more blocks for the kernels with long-running threads on Metal
90cd81e
macOS fails a command buffer with "Impacting Interactivity" when its thread
groups do not finish in time for the GPU to be handed to another context.
The kernels launched with a fixed grid loop over their work with the grid as
stride, so with few blocks every thread group runs for as long as the
dispatch. At 30 kHz Pb-Pb that is too long: with 4 sectors of a time frame
the tracklet constructor, running for several sectors at once on 32 or 64
blocks, is killed after 50 to 200 ms in every run, and passes from 128
blocks on; on the full time frame the looper following, 512 groups of one
thread, is killed after 0.5 s. The track fit, 3.1 s in one dispatch of 8236
short blocks, is not.

Launch the tracklet constructor on 1024 blocks, the looper following on
2048 blocks of 32 threads (2 to 3 times faster than 512 single threads),
and the sector refit, which also runs for several sectors at once, on 256.
The compression of the unattached clusters gets 2048 blocks, from its time
on a part of the time frame: it was not reached on a full one yet.
@ktf
ktf requested a review from davidrohr as a code owner November 12, 2026 07:48
@ktf

ktf commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

Tested on my box. Not tested in the CI. Merging.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ktf
ktf merged commit 3db945b into AliceO2Group:dev Nov 12, 2026
5 of 6 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@davidrohr davidrohr Awaiting requested review from davidrohr davidrohr is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@ktf
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.