Skip to content

Commit 5819089

Browse files
author
Michael Abbott
committed
disable anyone / onlyone, vectorised min/max grad already disabled
1 parent a68c11b commit 5819089

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/eval.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ using Requires
6363
using .LoopVectorization.VectorizationBase: Vec, Mask, prevpow2
6464
SVec{N,T} = Vec{N,T}
6565
end
66-
66+
#=
6767
# Functions needed for safe vectorised max gradient
6868
@inline Tullio.onlyone(cond::Bool, seen::SVec) = cond && allzero(seen)
6969
@@ -75,6 +75,7 @@ using Requires
7575
@inline allzero(seen::SVec) = iszero((!iszero(seen)).u)
7676
7777
@inline Tullio.anyone(cond::Mask) = !iszero(cond.u)
78+
=#
7879
end
7980

8081
#========== CuArrays ==========#

test/group-3.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ t8 = time()
107107
using LoopVectorization
108108
using VectorizationBase
109109

110+
#=
110111
if isdefined(VectorizationBase, :SVec) # LV version 0.8, for Julia <= 1.5
111112
using VectorizationBase: SVec, Mask
112113
else # LV version 0.9, supports Julia >= 1.5
@@ -136,6 +137,7 @@ end
136137
@test Tullio.onlyone(ms, zero(sv)) === Mask{4}(0x02)
137138
# @test Tullio.onlyone(ms, zero(sv)).u == 0x02
138139
end
140+
=#
139141

140142
@testset "parsing + LoopVectorization" begin include("parsing.jl") end
141143

0 commit comments

Comments
 (0)