CliMA / ClimateMachine.jl

Climate Machine: an Earth System Model that automatically learns from data
https://clima.github.io/ClimateMachine.jl/latest/
Other
452 stars 78 forks source link

Generate better precompilation info for system image #1191

Open jakebolewski opened 4 years ago

jakebolewski commented 4 years ago

Description

Currently we are running / exercising a test harness to be able to generate method definitions for precompilation / system image compilation. It would be better to have explicit method definitions for precompilation (though a precompilation file) generated by recording a substantive climate machine run or ex. through external packages like SnoopCompile. This should help with module loading times and runtimes if we ship the statically precompiled version of ClimateMachine.

Steps

cc @simonbyrne

Additional context

Add any other reasons why this should be addressed.

For CLIMA Developers

jakebolewski commented 4 years ago

I think before the next tagged release we can add a pre-compile file generated from running the unit test suite:

https://julialang.github.io/PackageCompiler.jl/dev/sysimages/#Using-a-package's-test-suite-to-generate-precompile-statements-1

We'll have to merge gpu and cpu enabled generated output