Skip to content

Commit

Permalink
Merge pull request #986 from JuliaRobotics/23Q4/enh/precomptools
Browse files Browse the repository at this point in the history
add precomp tools
  • Loading branch information
dehann authored Oct 22, 2023
2 parents fe28af9 + b9ec91f commit 201b959
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions src/Caesar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 201b959

Please sign in to comment.