From dbbafef49eb982a1d303459f6511e1bca9c6f823 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Mon, 24 Apr 2023 17:17:01 -0500 Subject: [PATCH] Migrate from SnoopPrecompile to PrecompileTools --- Project.toml | 4 ++-- src/JutulDarcy.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 2af69d5b..3af274dc 100644 --- a/Project.toml +++ b/Project.toml @@ -15,7 +15,7 @@ LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890" MAT = "23992714-dd62-5051-b70f-ba57cb901cac" MultiComponentFlash = "35e5bd01-9722-4017-9deb-64a5d32478ff" Polyester = "f517fe37-dbe3-4b94-8317-1923a5111588" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" @@ -32,7 +32,7 @@ LoopVectorization = "0.12.115" MAT = "0.10.3" MultiComponentFlash = "1.1.3" Polyester = "0.6.11, 0.7.3" -SnoopPrecompile = "1.0.1" +PrecompileTools = "1.0.1" StaticArrays = "1.4.4" TestItems = "0.1.0" TimerOutputs = "0.5.19" diff --git a/src/JutulDarcy.jl b/src/JutulDarcy.jl index 1afefed1..088671e8 100644 --- a/src/JutulDarcy.jl +++ b/src/JutulDarcy.jl @@ -45,7 +45,7 @@ module JutulDarcy using MAT using Tullio, LoopVectorization, Polyester using TimerOutputs - using SnoopPrecompile + using PrecompileTools using Dates import DataStructures: OrderedDict @@ -87,7 +87,7 @@ module JutulDarcy include("formulations/formulations.jl") - @precompile_all_calls begin + @compile_workload begin precompile_darcy_multimodels() # We run a tiny MRST case to precompile the .MAT file loading spe1_path = joinpath(pathof(JutulDarcy), "..", "..", "test", "mrst", "spe1.mat")