diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03098a38..be868508 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,6 @@ jobs: - 'pre' os: - ubuntu-latest - - macOS-latest - windows-latest arch: - x64 @@ -41,6 +40,55 @@ jobs: - part4 - part5 - part6 + include: + - version: 'lts' + os: macOS-latest + arch: aarch64 + loopvectorization_test: part1 + - version: 'lts' + os: macOS-latest + arch: aarch64 + loopvectorization_test: part2 + - version: 'lts' + os: macOS-latest + arch: aarch64 + loopvectorization_test: part3 + - version: 'lts' + os: macOS-latest + arch: aarch64 + loopvectorization_test: part4 + - version: 'lts' + os: macOS-latest + arch: aarch64 + loopvectorization_test: part5 + - version: 'lts' + os: macOS-latest + arch: aarch64 + loopvectorization_test: part6 + - version: '1' + os: macOS-latest + arch: aarch64 + loopvectorization_test: part1 + - version: '1' + os: macOS-latest + arch: aarch64 + loopvectorization_test: part2 + - version: '1' + os: macOS-latest + arch: aarch64 + loopvectorization_test: part3 + - version: '1' + os: macOS-latest + arch: aarch64 + loopvectorization_test: part4 + - version: '1' + os: macOS-latest + arch: aarch64 + loopvectorization_test: part5 + - version: '1' + os: macOS-latest + arch: aarch64 + loopvectorization_test: part6 steps: - uses: actions/checkout@v6 - uses: julia-actions/setup-julia@v2 diff --git a/test/dot.jl b/test/dot.jl index 6177c4ef..649cfc01 100644 --- a/test/dot.jl +++ b/test/dot.jl @@ -2,6 +2,7 @@ using LoopVectorization, OffsetArrays using Test @testset "dot" begin + dotunroll = LoopVectorization.register_count() == 32 ? 8 : 4 dotq = :( for i ∈ eachindex(a, b) s += a[i] * b[i] @@ -9,7 +10,7 @@ using Test ) lsdot = LoopVectorization.loopset(dotq) @test LoopVectorization.choose_order(lsdot) == - (Symbol[:i], :i, Symbol("##undefined##"), :i, 4, -1) + (Symbol[:i], :i, Symbol("##undefined##"), :i, dotunroll, -1) function mydot(a::AbstractVector, b::AbstractVector) s = zero(eltype(a)) za = OffsetArray(a, OffsetArrays.Origin(0))