Skip to content

Commit

Permalink
Merge pull request #181 from timholy/teh/precompiletools
Browse files Browse the repository at this point in the history
Migrate from SnoopPrecompile to PrecompileTools
  • Loading branch information
ChrisRackauckas authored Apr 26, 2023
2 parents 615d895 + fd8923d commit 54b8855
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
SimpleNonlinearSolve = "727e6d20-b764-4bd8-a329-72de5adea6c7"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
SparseDiffTools = "47a9eef4-7e08-11e9-0b38-333d64bd3804"
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
Expand All @@ -32,7 +32,7 @@ RecursiveArrayTools = "2"
Reexport = "0.2, 1"
SciMLBase = "1.73"
SimpleNonlinearSolve = "0.1"
SnoopPrecompile = "1"
PrecompileTools = "1"
SparseDiffTools = "1, 2"
StaticArraysCore = "1.4"
UnPack = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions src/NonlinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ include("trustRegion.jl")
include("levenberg.jl")
include("ad.jl")

import SnoopPrecompile
import PrecompileTools

SnoopPrecompile.@precompile_all_calls begin for T in (Float32, Float64)
PrecompileTools.@compile_workload begin for T in (Float32, Float64)
prob = NonlinearProblem{false}((u, p) -> u .* u .- p, T(0.1), T(2))

precompile_algs = if VERSION >= v"1.7"
Expand Down

0 comments on commit 54b8855

Please sign in to comment.