Skip to content

Commit 19dc445

Browse files
authored
Drop Requires (#373)
* Drop Requires * fix tests
1 parent 136bf97 commit 19dc445

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

Project.toml

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

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
88
CPUSummary = "2a0fbf3d-bb9c-48f3-b0a9-814d99fd7ab9"
9+
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
910
CloseOpenIntervals = "fb6a15b2-703c-40df-9091-08a04967cfa9"
1011
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
12+
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
1113
HostCPUFeatures = "3e5b6fbb-0976-4d2c-9146-d79de83f2fb0"
1214
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
1315
LayoutPointers = "10f19ff3-798f-405d-979b-55457f8fc047"
1416
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1517
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
1618
PolyesterWeave = "1d0040c9-8b98-4ee7-8388-3f51789ca0ad"
17-
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1819
SIMDDualNumbers = "3cdde19b-5bb0-4aaf-8931-af3e248e098b"
1920
SLEEFPirates = "476501e8-09a2-5ece-8869-fb82de89a1fa"
21+
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
2022
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
2123
ThreadingUtilities = "8290d209-cae3-49c0-8002-c8c24d57dab5"
2224
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
@@ -25,16 +27,18 @@ VectorizationBase = "3d5dd08c-fd9d-11e8-17fa-ed2836048c2f"
2527
[compat]
2628
ArrayInterface = "3.1.32, 3.2.1"
2729
CPUSummary = "0.1.3"
30+
ChainRulesCore = "1"
2831
CloseOpenIntervals = "0.1.2"
2932
DocStringExtensions = "0.8"
33+
ForwardDiff = "0.9, 0.10"
3034
HostCPUFeatures = "0.1.3"
3135
IfElse = "0.1"
3236
LayoutPointers = "0.1.2"
3337
OffsetArrays = "1.4.1"
3438
PolyesterWeave = "0.1"
35-
Requires = "1"
3639
SIMDDualNumbers = "0.1"
3740
SLEEFPirates = "0.6.23"
41+
SpecialFunctions = "1, 2"
3842
Static = "0.3.3, 0.4"
3943
ThreadingUtilities = "0.4.5"
4044
UnPack = "1"

src/LoopVectorization.jl

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ using CloseOpenIntervals: AbstractCloseOpen, CloseOpen#, SafeCloseOpen
5151
# end
5252
const Static = StaticInt
5353

54-
using Requires
55-
56-
5754
export LowDimArray, stridedpointer, indices, static,
5855
@avx, @avxt, @turbo, @tturbo, *ˡ, _turbo_!,
5956
vmap, vmap!, vmapt, vmapt!, vmapnt, vmapnt!, vmapntt, vmapntt!,
@@ -120,12 +117,9 @@ _vreduce(+, Float64[1.0])
120117

121118
# import ChainRulesCore, ForwardDiff
122119
# include("vmap_grad.jl")
123-
function __init__()
124-
@require ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" include("simdfunctionals/vmap_grad_rrule.jl")
125-
@require ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" include("simdfunctionals/vmap_grad_forwarddiff.jl")
126-
@require SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" begin
127-
@eval SpecialFunctions.erf(x::AbstractSIMD) = VectorizationBase.verf(float(x))
128-
end
129-
end
120+
using ChainRulesCore, ForwardDiff, SpecialFunctions
121+
include("simdfunctionals/vmap_grad_rrule.jl")
122+
include("simdfunctionals/vmap_grad_forwarddiff.jl")
123+
@inline SpecialFunctions.erf(x::AbstractSIMD) = VectorizationBase.verf(float(x))
130124

131125
end # module

test/grouptests.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ const START_TIME = time()
1212

1313
@time if LOOPVECTORIZATION_TEST == "all" || LOOPVECTORIZATION_TEST == "part2"
1414
using Aqua
15-
@time Aqua.test_all(LoopVectorization, ambiguities = VERSION v"1.6", stale_deps = false)
16-
@time Aqua.test_stale_deps(LoopVectorization, ignore = [:SIMDDualNumbers])
15+
@time Aqua.test_all(LoopVectorization, ambiguities = false)
1716
# @test isempty(detect_unbound_args(LoopVectorization))
1817

1918
@time include("printmethods.jl")

0 commit comments

Comments
 (0)