Skip to content

Commit 9f2dc1f

Browse files
committed
SnoopPrecompile
1 parent 8087b1b commit 9f2dc1f

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LoopVectorization"
22
uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
33
authors = ["Chris Elrod <[email protected]>"]
4-
version = "0.12.120"
4+
version = "0.12.121"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
@@ -22,6 +22,7 @@ PolyesterWeave = "1d0040c9-8b98-4ee7-8388-3f51789ca0ad"
2222
SIMDDualNumbers = "3cdde19b-5bb0-4aaf-8931-af3e248e098b"
2323
SIMDTypes = "94e857df-77ce-4151-89e5-788b33177be4"
2424
SLEEFPirates = "476501e8-09a2-5ece-8869-fb82de89a1fa"
25+
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
2526
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
2627
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
2728
ThreadingUtilities = "8290d209-cae3-49c0-8002-c8c24d57dab5"

src/LoopVectorization.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ loop-reordering so as to improve performance:
231231
LoopVectorization
232232

233233
include("precompile.jl")
234-
_precompile_()
234+
# _precompile_()
235235

236-
_vreduce(+, Float64[1.0])
236+
# _vreduce(+, Float64[1.0])
237237
# matmul_params(64, 32, 64)
238238

239239
# import ChainRulesCore, ForwardDiff

src/precompile.jl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
function _precompile_()
2-
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
1+
2+
using SnoopPrecompile
3+
4+
@precompile_setup begin
5+
x = rand(10);
6+
@precompile_all_calls begin
7+
_vreduce(+, x)
8+
end
39
end
10+

utils/generate_precompiles.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
using LoopVectorization, SnoopCompile
3-
tinf = @snoopi_deep include(joinpath(pkgdir(LoopVectorization), "test", "runtests.jl"))
3+
LOOPVECTORIZATION_TEST = "all"
4+
tinf = @snoopi_deep include(joinpath(pkgdir(LoopVectorization), "test", "testsetup.jl"))
5+
tinf = @snoopi_deep include(joinpath(pkgdir(LoopVectorization), "test", "grouptests.jl"))
46

57
ttot, pcs = SnoopCompile.parcel(tinf);
68

0 commit comments

Comments
 (0)