Skip to content

Does expressions like "x.at[idx].add(y)" are executed in parallel on GPU? #17324

Answered by hawkinsp
Dong-Jiahuan asked this question in Q&A
Discussion options

You must be logged in to vote

Yes. That expression lowers to an HLO scatter operator, and if the scatter updates multiple indices in one operation, those updates may happen in parallel.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Dong-Jiahuan
Comment options

@hawkinsp
Comment options

@Dong-Jiahuan
Comment options

Answer selected by Dong-Jiahuan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants