We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eb47f3 commit 7896059Copy full SHA for 7896059
src/eval.jl
@@ -52,8 +52,14 @@ using Requires
52
@inline anyone(cond::Bool) = cond
53
54
@init @require LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890" begin
55
-
56
- using .LoopVectorization.VectorizationBase: SVec, Mask, prevpow2
+ using .LoopVectorization
+ SVec = if isdefined(LoopVectorization, :SVec) # version 0.8, for Julia ⩽1.5
57
+ using .LoopVectorization.VectorizationBase: SVec, Mask, prevpow2
58
+ Svec
59
+ else # version 0.9, supports Julia 1.6
60
+ using .LoopVectorization.VectorizationBase: Vec, Mask, prevpow2
61
+ Vec
62
+ end
63
64
# Functions needed for safe vectorised max gradient
65
@inline Tullio.onlyone(cond::Bool, seen::SVec) = cond && allzero(seen)
0 commit comments