Skip to content

Commit

Permalink
Tests pass on M1 in Linux VM.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Nov 1, 2021
1 parent a4d2c8d commit 5bccb7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions test/gemm.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@testset "GEMM" begin
# using LoopVectorization, LinearAlgebra, Test; T = Float64
if LoopVectorization.cache_linesize() == 64
Unum, Tnum = LoopVectorization.register_count() == 16 ? (2, 6) : (3, 9)
Unum, Tnum = LoopVectorization.register_count() == 16 ? (2, 6) : (LoopVectorization.register_size() == 64 ? (3, 9) : (4, 6))
else
Unum, Tnum = LoopVectorization.register_count() == 16 ? (2, 6) : (4, 6)
end
Expand Down Expand Up @@ -707,6 +707,7 @@
# LoopVectorization.VectorizationBase.ZeroInitializedStridedPointer(LoopVectorization.VectorizationBase.stridedpointer(A.data))
# end

@testset "Matmuls" begin
for T (Float32, Float64, Int32, Int64)
TC = sizeof(T) == 4 ? Float32 : Float64
R = T <: Integer ? (T(-1000):T(1000)) : T
Expand Down Expand Up @@ -975,7 +976,8 @@
fill!(C, 9999.999); rank2AmulBavx_noinline!(C, Aₘ, Aₖ′', B)
@test C C2
end
end
end
end
end
end

2 changes: 1 addition & 1 deletion test/upperboundedintegers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ using OffsetArrays, Test
# It may evaluate less than the upper bound, depending on the mask's value.
# We check that the first few match
@test @view(ubdouble!(xs, x)[begin:3]) == @view(x[begin:3]) .* 2;
@test xs[end] 2x[end]
LoopVectorization.register_size() > 16 && (@test xs[end] 2x[end])
end
end

2 comments on commit 5bccb7a

@chriselrod
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/47858

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.12.91 -m "<description of version>" 5bccb7ab356f21dd812d4ab989e85da435ee4b41
git push origin v0.12.91

Please sign in to comment.