Can Symbolics/MTK split the generated RHS into multiple smaller functions?
Julia Programming Language
Can Symbolics/MTK split the generated RHS into multiple smaller functions?
I have a large ModelingToolkit model. mtkcompile inlines ~32k observed equations into a single big RHS function in around 60 seconds, and first-call compilation of that one function takes >1000 s (dominated by type inference of the single MethodInstance, per @snoop_inference). CSE is working and it’s not a type-instability issue, it’s purely the size of one function. Because it’s a single function / single MethodInstance: it compiles on one thread (~100% CPU on a 16-core machine), so more cor...
0 comments
No comments yet.