Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 976758f

Browse files
Merge pull request #62 from timholy/teh/precompiletools
Migrate from SnoopPrecompile to PrecompileTools
2 parents 909722f + 0eb9151 commit 976758f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1212
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1313
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1414
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
15-
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
15+
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
1616
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
1717

1818
[weakdeps]
@@ -30,7 +30,7 @@ NNlib = "0.8"
3030
Reexport = "0.2, 1"
3131
Requires = "1"
3232
SciMLBase = "1.73"
33-
SnoopPrecompile = "1"
33+
PrecompileTools = "1"
3434
StaticArraysCore = "1.4"
3535
julia = "1.6"
3636

src/SimpleNonlinearSolve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ include("ad.jl")
4040
include("halley.jl")
4141
include("alefeld.jl")
4242

43-
import SnoopPrecompile
43+
import PrecompileTools
4444

45-
SnoopPrecompile.@precompile_all_calls begin for T in (Float32, Float64)
45+
PrecompileTools.@compile_workload begin for T in (Float32, Float64)
4646
prob_no_brack = NonlinearProblem{false}((u, p) -> u .* u .- p, T(0.1), T(2))
4747
for alg in (SimpleNewtonRaphson, Halley, Broyden, Klement, SimpleTrustRegion,
4848
SimpleDFSane)

0 commit comments

Comments
 (0)