From b9ec91f9b729f71d7d5c691af417c09863a91ed6 Mon Sep 17 00:00:00 2001 From: dehann Date: Sun, 22 Oct 2023 02:44:42 -0700 Subject: [PATCH] add precomp tools --- Project.toml | 2 ++ src/Caesar.jl | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Project.toml b/Project.toml index ba5f97ab8..7c7be648f 100644 --- a/Project.toml +++ b/Project.toml @@ -39,6 +39,7 @@ NLsolve = "2774e3e8-f4cf-5e23-947b-6d7e65073b56" NearestNeighbors = "b8a86587-4115-5ab1-83bc-aa920d37bbce" Optim = "429524aa-4258-5aef-a3af-852621145aeb" Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" @@ -104,6 +105,7 @@ MultivariateStats = "0.10" NLsolve = "4" NearestNeighbors = "0.4" Optim = "1" +PrecompileTools = "1" ProgressMeter = "1" Reexport = "1" RoME = "0.21, 0.22, 0.23" diff --git a/src/Caesar.jl b/src/Caesar.jl index 5949a51a8..92165a048 100644 --- a/src/Caesar.jl +++ b/src/Caesar.jl @@ -44,6 +44,7 @@ using using Optim using Reexport +using PrecompileTools # import RoME: initfg # collision on RoME.initfg() since no parameters are given in both RoME and Caesar @@ -100,4 +101,9 @@ include("../ext/WeakdepsPrototypes.jl") include("Deprecated.jl") +@compile_workload begin + # In here put "toy workloads" that exercise the code you want to precompile + warmUpSolverJIT() +end + end