Skip to content

Commit 5bccb7a

Browse files
committed
Tests pass on M1 in Linux VM.
1 parent a4d2c8d commit 5bccb7a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

test/gemm.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@testset "GEMM" begin
22
# using LoopVectorization, LinearAlgebra, Test; T = Float64
33
if LoopVectorization.cache_linesize() == 64
4-
Unum, Tnum = LoopVectorization.register_count() == 16 ? (2, 6) : (3, 9)
4+
Unum, Tnum = LoopVectorization.register_count() == 16 ? (2, 6) : (LoopVectorization.register_size() == 64 ? (3, 9) : (4, 6))
55
else
66
Unum, Tnum = LoopVectorization.register_count() == 16 ? (2, 6) : (4, 6)
77
end
@@ -707,6 +707,7 @@
707707
# LoopVectorization.VectorizationBase.ZeroInitializedStridedPointer(LoopVectorization.VectorizationBase.stridedpointer(A.data))
708708
# end
709709

710+
@testset "Matmuls" begin
710711
for T (Float32, Float64, Int32, Int64)
711712
TC = sizeof(T) == 4 ? Float32 : Float64
712713
R = T <: Integer ? (T(-1000):T(1000)) : T
@@ -975,7 +976,8 @@
975976
fill!(C, 9999.999); rank2AmulBavx_noinline!(C, Aₘ, Aₖ′', B)
976977
@test C C2
977978
end
978-
end
979+
end
979980
end
981+
end
980982
end
981983

test/upperboundedintegers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ using OffsetArrays, Test
3636
# It may evaluate less than the upper bound, depending on the mask's value.
3737
# We check that the first few match
3838
@test @view(ubdouble!(xs, x)[begin:3]) == @view(x[begin:3]) .* 2;
39-
@test xs[end] 2x[end]
39+
LoopVectorization.register_size() > 16 && (@test xs[end] 2x[end])
4040
end
4141
end

0 commit comments

Comments
 (0)