Large constants under compiled functions #25166
Unanswered
renecotyfanboy
asked this question in
Q&A
Replies: 1 comment
-
At this time, I am using the solution proposed by @inversecrime in #21300 which consists in manipulating the
|
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 a question related to large arrays in jitted functions. I have issues with functions that interpolate within large static arrays, leading to extremely long compilation times because of constant folding or equivalent I guess. I know that a good practice to deal with this kind of issues would be to put these large table as parameters of the function I want, and it works like a charm when doing so. But since I am working with external frameworks, there is a point where I cannot pass these tables as input anymore, and since the framework is enforcing compilation, I have no choice but to find a way to prevent this constant folding.
I think that solving this code would be sufficient for my problem. I could use pure_callbacks to return the tables but I am afraid to lose too much optimization doing so. I have also read about #21300, but I can't get the XLA flag to work, and I don't know how to manipulate
jaxpr
to do this. Any opinion ?Beta Was this translation helpful? Give feedback.
All reactions