Skip to content

Commit 633f353

Browse files
committed
Require VectorizationBase 0.21.63 and fix issue #480
1 parent 552c392 commit 633f353

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
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.154"
4+
version = "0.12.155"
55

66
[weakdeps]
77
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
@@ -57,5 +57,5 @@ Static = "0.8.4"
5757
StaticArrayInterface = "1"
5858
ThreadingUtilities = "0.5"
5959
UnPack = "1"
60-
VectorizationBase = "0.21.62"
60+
VectorizationBase = "0.21.63"
6161
julia = "1.6"

src/LoopVectorization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ using VectorizationBase:
108108
contract_or,
109109
collapse_or,
110110
max_mask,
111-
maybestaticsize#,zero_mask
111+
maybestaticsize,zero_mask
112112

113113
using HostCPUFeatures:
114114
pick_vector_width,

test/simplemisc.jl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,21 @@ end
2626
@test real.(A) == LinearAlgebra.Diagonal(1:10)
2727
@test all(iszero, imag.(A))
2828
end
29+
function issue480(x, y)
30+
z = false
31+
@turbo for i in eachindex(x)
32+
z |= x[i] > y[i]
33+
end
34+
z
35+
end
36+
@testset "issue 480" begin
37+
using LoopVectorization
38+
x = zeros(33)
39+
y = zeros(33)
40+
@test !issue480(x, y)
41+
for i in eachindex(x)
42+
x[i] = 1.0
43+
@test issue480(x, y)
44+
x[i] = 0.0
45+
end
46+
end

0 commit comments

Comments
 (0)