Closed lbonaldo closed 6 days ago
Hi @sambuddhac! The precompile
folder contains input files for a simple case that I created, which is used by Julia to compile some of the GenX functions. Here are some benchmarks:
Setup:
Results:
Hi @sambuddhac! The
precompile
folder contains input files for a simple case that I created, which is used by Julia to compile some of the GenX functions. Here are some benchmarks:Setup:
- CPU model: Apple M2
- Julia version: 1.10.4
GenX versions:
- 0.4.0-dev.10 (current develop)
- feature-branch (519-adding-precompile-tools)
Results:
- Precompilation Additional Time: 40s
- Time to first execution (TTFX):
Thank you so much !!! Enlightening !!!
Description
This PR adds the option to precompile the
run_genx_case!
function, reducing the latency of the first execution of GenX in a Julia environment.What type of PR is this? (check all applicable)
Related Tickets & Documents
This addresses #519.
Checklist
How this can be tested
As described in the documentation, this can be tested by running the following commands:
The user should see a speedup in the model generation and the functions for writing outputs.
Post-approval checklist for GenX core developers
After the PR is approved