Skip to content

Commit 00d50b3

Browse files
timholychriselrod
andauthored
Migrate from SnoopPrecompile to PrecompileTools (#176)
Co-authored-by: Chris Elrod <[email protected]>
1 parent be7db82 commit 00d50b3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
1010
LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890"
1111
ManualMemory = "d125e4d3-2237-4719-b19c-fa641b8a4667"
1212
PolyesterWeave = "1d0040c9-8b98-4ee7-8388-3f51789ca0ad"
13-
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
13+
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
1414
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
1515
StaticArrayInterface = "0d7ed370-da01-4f52-bd93-41d350b8b718"
1616
ThreadingUtilities = "8290d209-cae3-49c0-8002-c8c24d57dab5"
@@ -23,7 +23,7 @@ IfElse = "0.1"
2323
LoopVectorization = "0.12.86"
2424
ManualMemory = "0.1.1"
2525
PolyesterWeave = "0.1.1, 0.2"
26-
SnoopPrecompile = "1"
26+
PrecompileTools = "1"
2727
Static = "0.8.4"
2828
StaticArrayInterface = "1"
2929
ThreadingUtilities = "0.5"

src/Octavian.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ using ManualMemory: MemoryBuffer, load, store!
3838
using ThreadingUtilities:
3939
_atomic_add!, _atomic_load, _atomic_store!, launch, wait, SPIN
4040

41-
using SnoopPrecompile: @precompile_setup, @precompile_all_calls
41+
using PrecompileTools: @setup_workload, @compile_workload
4242

4343
if !(StaticInt <: Base.Integer)
4444
const Integer = Union{Base.Integer,StaticInt}
@@ -74,14 +74,14 @@ if !isdefined(Base, :get_extension)
7474
end
7575

7676
@static if VERSION >= v"1.8.0-beta1"
77-
@precompile_setup begin
77+
@setup_workload begin
7878
# Putting some things in `setup` can reduce the size of the
7979
# precompile file and potentially make loading faster.
8080
__init__()
8181
A64 = rand(100, 100)
8282
A32 = rand(Float32, 100, 100)
8383

84-
@precompile_all_calls begin
84+
@compile_workload begin
8585
# All calls in this block will be precompiled, regardless of whether
8686
# they belong to Octavian.jl or not (on Julia 1.8 and higher).
8787
matmul(A64, A64)

0 commit comments

Comments
 (0)