Skip to content

Commit d9541a7

Browse files
committed
Update SIMDPirates requirement. Fixes #127.
1 parent 1101722 commit d9541a7

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
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.8.4"
4+
version = "0.8.5"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
@@ -15,7 +15,7 @@ VectorizationBase = "3d5dd08c-fd9d-11e8-17fa-ed2836048c2f"
1515
[compat]
1616
DocStringExtensions = "0.8"
1717
OffsetArrays = "1"
18-
SIMDPirates = "0.8.6"
18+
SIMDPirates = "0.8.7"
1919
SLEEFPirates = "0.5"
2020
UnPack = "0,1"
2121
VectorizationBase = "0.12.6"

test/miscellaneous.jl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,21 @@ using Test
623623
end
624624
end
625625
end
626+
function loopinductvardivision(τ)
627+
M,N = size(τ)
628+
for t = 1:N, j = 1:M
629+
τ[j, t] = ((j - 1) / (M - 1))
630+
end
631+
τ
632+
end
633+
function loopinductvardivisionavx(τ)
634+
M,N = size(τ)
635+
@avx for t = 1:N, j = 1:M
636+
τ[j, t] = ((j - 1) / (M - 1))
637+
end
638+
τ
639+
end
640+
626641

627642
for T (Float32, Float64)
628643
@show T, @__LINE__
@@ -809,6 +824,8 @@ using Test
809824
multiple_unrolls_split_depchains_avx!(c_re_2, a_re, b_re, a_im, b_im) # [1 1; 1 1]
810825
@test c_re_1 c_re_2
811826

827+
@test loopinductvardivision(X1) loopinductvardivisionavx(X2)
828+
812829
mh = (
813830
Wt_D_W = Matrix{T}(undef, 181, 181),
814831
Wt = rand(T, 181, 191),
@@ -874,6 +891,7 @@ function smoothdim_ifelse_avx!(s, x, α, Rpre, irng::AbstractUnitRange, Rpost)
874891
end
875892
s
876893
end
894+
877895
for T (Float32, Float64)
878896
@testset "Mixed CartesianIndex/Int indexing" begin
879897
@show T, @__LINE__

0 commit comments

Comments
 (0)