From 4ddff297f37371943a4b2939ec031577fa633a48 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 25 Apr 2023 05:47:42 +0200 Subject: [PATCH] switch to PrecompileTools (#181) * switch to PrecompileTools * bump version * ignore PrecompileTools in Aqua tests --- Project.toml | 6 +++--- src/precompile.jl | 13 +++++++------ test/aqua.jl | 5 +++-- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Project.toml b/Project.toml index d8afadc4..cb67c7bc 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SummationByPartsOperators" uuid = "9f78cca6-572e-554e-b819-917d2f1cf240" author = ["Hendrik Ranocha"] -version = "0.5.33" +version = "0.5.34" [deps] ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197" @@ -12,12 +12,12 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890" MuladdMacro = "46d2c3a1-f734-5fdb-9937-b9b9aeba4221" PolynomialBases = "c74db56a-226d-5e98-8bb0-a6049094aeea" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" Requires = "ae029012-a4dd-5104-9daa-d747884805df" SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462" SimpleUnPack = "ce78b400-467f-4804-87d8-8f486da07d0a" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" StaticArrayInterface = "0d7ed370-da01-4f52-bd93-41d350b8b718" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" @@ -32,12 +32,12 @@ FFTW = "1" LoopVectorization = "0.12.22" MuladdMacro = "0.2" PolynomialBases = "0.4.15" +PrecompileTools = "1.0.1" RecursiveArrayTools = "2.11" Reexport = "0.2, 1.0" Requires = "0.5.2, 1" SciMLBase = "1.51" SimpleUnPack = "1" -SnoopPrecompile = "1" StaticArrayInterface = "1" StaticArrays = "1.0" StructArrays = "0.6" diff --git a/src/precompile.jl b/src/precompile.jl index e8196b04..bd454275 100644 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -1,14 +1,15 @@ -using SnoopPrecompile: @precompile_all_calls +using PrecompileTools: @compile_workload -@precompile_all_calls begin - let D = periodic_derivative_operator(derivative_order=1, accuracy_order=2, - xmin=0.0, xmax=2.0, N=10) +@compile_workload begin + let D = periodic_derivative_operator(derivative_order = 1, accuracy_order = 2, + xmin = 0.0, xmax = 2.0, N = 10) u = zeros(eltype(D), size(D, 2)) D * u end - let D = derivative_operator(MattssonNordström2004(), derivative_order=1, accuracy_order=2, - xmin=0.0, xmax=2.0, N=10) + let D = derivative_operator(MattssonNordström2004(), + derivative_order = 1, accuracy_order = 2, + xmin = 0.0, xmax = 2.0, N = 10) u = zeros(eltype(D), size(D, 2)) D * u end diff --git a/test/aqua.jl b/test/aqua.jl index 7534dd6b..ec31e437 100644 --- a/test/aqua.jl +++ b/test/aqua.jl @@ -2,6 +2,7 @@ using Aqua using SummationByPartsOperators Aqua.test_all(SummationByPartsOperators; - ambiguities=false, # a lot of false positives from dependencies - unbound_args=false # TODO: a strange problem I do not understand right now + ambiguities = false, # a lot of false positives from dependencies + unbound_args = false, # TODO: a strange problem I do not understand right now + stale_deps = (; ignore = [:PrecompileTools]), )