When using run_mode: Run there was a non-insignificant overhead in initializing the dycore from the checks that we do not build. By moving them our initialization time gets significantly faster
Remove the sections below which do not apply.
Code changes:
Moved setting exit_instead_of_buildof the GT4Py StencilBuilder from FrozenStencil's init to Driver's init
Used the proper setattr instead of an assignment
Moved determine_compiling_equivalent from its standalone file into CompilationConfig and extended it for run_mode beyond Run
Added testing for determine_compiling_equivalent
Modified FrozenStencil to only wait for compilation in building-modes
Checklist
Before submitting this PR, please make sure:
[X] You have followed the coding standards guidelines established at Code Review Checklist.
Purpose
When using
run_mode: Run
there was a non-insignificant overhead in initializing the dycore from the checks that we do not build. By moving them our initialization time gets significantly fasterRemove the sections below which do not apply.
Code changes:
exit_instead_of_build
of the GT4PyStencilBuilder
from FrozenStencil's init to Driver's initdetermine_compiling_equivalent
from its standalone file intoCompilationConfig
and extended it forrun_mode
beyondRun
determine_compiling_equivalent
FrozenStencil
to only wait for compilation in building-modesChecklist
Before submitting this PR, please make sure: