Skip to content

Jitted function and sharding side-effect #18128

Answered by jakevdp
sh0416 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not entirely sure I understand the question, but you'll need to mark Mesh arguments as static within JIT-compiled functions, because non-static arguments must either be arrays or pytrees of arrays. So your second example (with static_argnames=['mesh']) is probably the way to go.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sh0416
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