From 0ba9b91f91bea5dd67e2b641532a8050cbe1e049 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Mon, 24 Apr 2023 16:38:40 -0500 Subject: [PATCH] Migrate from SnoopPrecompile to PrecompileTools --- lib/SimpleNonlinearSolve/Project.toml | 4 ++-- lib/SimpleNonlinearSolve/src/SimpleNonlinearSolve.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/SimpleNonlinearSolve/Project.toml b/lib/SimpleNonlinearSolve/Project.toml index a0becaaca..aeb58ac43 100644 --- a/lib/SimpleNonlinearSolve/Project.toml +++ b/lib/SimpleNonlinearSolve/Project.toml @@ -12,7 +12,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" Requires = "ae029012-a4dd-5104-9daa-d747884805df" SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c" [weakdeps] @@ -30,7 +30,7 @@ NNlib = "0.8" Reexport = "0.2, 1" Requires = "1" SciMLBase = "1.73" -SnoopPrecompile = "1" +PrecompileTools = "1" StaticArraysCore = "1.4" julia = "1.6" diff --git a/lib/SimpleNonlinearSolve/src/SimpleNonlinearSolve.jl b/lib/SimpleNonlinearSolve/src/SimpleNonlinearSolve.jl index a33dd9297..46f1ab3c4 100644 --- a/lib/SimpleNonlinearSolve/src/SimpleNonlinearSolve.jl +++ b/lib/SimpleNonlinearSolve/src/SimpleNonlinearSolve.jl @@ -40,9 +40,9 @@ include("ad.jl") include("halley.jl") include("alefeld.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_no_brack = NonlinearProblem{false}((u, p) -> u .* u .- p, T(0.1), T(2)) for alg in (SimpleNewtonRaphson, Halley, Broyden, Klement, SimpleTrustRegion, SimpleDFSane)