Skip to content

Fixed the xp.all(axis=1) bottleneck - #347

Open
max-models wants to merge 2 commits into
develfrom
improvements-of-mpi-sort
Open

Fixed the xp.all(axis=1) bottleneck#347
max-models wants to merge 2 commits into
develfrom
improvements-of-mpi-sort

Conversation

@max-models

@max-models max-models commented Aug 17, 2026

Copy link
Copy Markdown
Member

Reducing over a size-3 trailing axis across millions of rows is slow with both numpy and cupy. The np.all(axis=1) can't vectorize a 3-wide reduction, while the 3 column slices is a large and easily vectorizable operation.

@max-models
max-models marked this pull request as ready for review August 17, 2026 08:48
@max-models
max-models requested a review from spossann August 17, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant