How to merge two computations that use reduction domain #6700
Unanswered
apartridge
asked this question in
Q&A
Replies: 1 comment
-
Were you able to figure this out? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
I have two functions that both depend on a rdom. I have made a minimal example below, where I calculate both the
sum_
andsum_squared
of some region of the input data. However, by defaultsum_
andsum_squared
will be calculated independently, in two loops over the rdom.Here is the loop nest that is printed. How would I be able to schedule this so that
sum_
andsum_squared
are calculated together in the same loop? Thanks for any tips!Code:
Beta Was this translation helpful? Give feedback.
All reactions