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
-
As described in title, I want to know if expressions like "x.at[idx].add(y)" are executed in parallel on GPU? Is it necessary to write CUDA to make custom operator to realize the same logic? |
Beta Was this translation helpful? Give feedback.
Answered by
hawkinsp
Aug 28, 2023
Replies: 1 comment 3 replies
-
Yes. That expression lowers to an HLO |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Dong-Jiahuan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.