Skip to content

Add scatter_max#653

Merged
akihironitta merged 1 commit into
masterfrom
port/scatter-05-max
May 18, 2026
Merged

Add scatter_max#653
akihironitta merged 1 commit into
masterfrom
port/scatter-05-max

Conversation

@akihironitta
Copy link
Copy Markdown
Member

Symmetric to scatter_min: init out to numeric_limits::lowest(),
strict > comparison, atomicMax value pass on CUDA. The argindex pass
is byte-identical to min (still atomicMin on argindex for deterministic
first-match on ties). Backward is the same +1/narrow pattern.

@github-actions github-actions Bot added the ops label May 18, 2026
@akihironitta akihironitta force-pushed the port/scatter-04-min branch from 0b028d9 to fbac654 Compare May 18, 2026 06:01
Base automatically changed from port/scatter-04-min to master May 18, 2026 06:01
Symmetric to `scatter_min`: init `out` to `numeric_limits::lowest()`,
strict `>` comparison, `atomicMax` value pass on CUDA. The argindex pass
is byte-identical to min (still `atomicMin` on argindex for deterministic
first-match on ties). Backward is the same `+1`/`narrow` pattern.
@akihironitta akihironitta marked this pull request as ready for review May 18, 2026 06:01
@akihironitta akihironitta force-pushed the port/scatter-05-max branch from 52ad05f to a44d219 Compare May 18, 2026 06:01
@akihironitta akihironitta merged commit 56e61a1 into master May 18, 2026
@akihironitta akihironitta deleted the port/scatter-05-max branch May 18, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant