Skip to content

[GLUON] Support broadcasting of shared scatter operations and unify operand checks#10293

Merged
Jokeren merged 14 commits into
mainfrom
keren/broadcast-atomic
May 14, 2026
Merged

[GLUON] Support broadcasting of shared scatter operations and unify operand checks#10293
Jokeren merged 14 commits into
mainfrom
keren/broadcast-atomic

Conversation

@Jokeren
Copy link
Copy Markdown
Contributor

@Jokeren Jokeren commented May 12, 2026

No description provided.

@Jokeren Jokeren requested a review from peterbell10 as a code owner May 12, 2026 13:10
@Jokeren
Copy link
Copy Markdown
Contributor Author

Jokeren commented May 12, 2026

Hi @peterbell10 can you please take a look?

Copy link
Copy Markdown
Contributor

@peterbell10 peterbell10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, other than a small nit

Comment on lines +307 to +308
if not isinstance(mask.type, ttgl.distributed_type):
mask = self.splat(mask, values.shape, values.type.layout)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: This should be handled by broadcast_tensors already

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed shape/layout checks as well since it's already handled by broadcast_tensors I suppose?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, as gluon's broadcast_impl_value already checks layout compatibility

@Jokeren Jokeren merged commit 12bbea0 into main May 14, 2026
9 checks passed
@Jokeren Jokeren deleted the keren/broadcast-atomic branch May 14, 2026 16:35
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.

2 participants