Skip to content

Commit 511fa4c

Browse files
committed
Don't test Zygote on Windows with Julia 1.6y
1 parent 132ffd0 commit 511fa4c

File tree

7 files changed

+18
-9
lines changed

7 files changed

+18
-9
lines changed

src/condense_loopset.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ end
382382
@inline check_args(A::BitArray) = iszero(size(A,1) & 7)
383383
@inline check_args(::VectorizationBase.AbstractStridedPointer) = true
384384
@inline function check_args(x)
385-
@info "`LoopVectorization.check_args(::$(typeof(x))) == false`, therefore compiling a probably slow `@inbounds @fastmath` fallback loop." maxlog=1
385+
# @info "`LoopVectorization.check_args(::$(typeof(x))) == false`, therefore compiling a probably slow `@inbounds @fastmath` fallback loop." maxlog=1
386386
false
387387
end
388388
@inline check_args(A, B, C::Vararg{Any,K}) where {K} = check_args(A) && check_args(B, C...)
@@ -395,17 +395,17 @@ Returns true if the element type is supported.
395395
"""
396396
@inline check_type(::Type{T}) where {T <: NativeTypes} = true
397397
function check_type(::Type{T}) where {T}
398-
@info """`LoopVectorization.check_type` returned `false`, because `LoopVectorization.check_type(::$(T)) == false`.
399-
`LoopVectorization` currently only supports `T <: $(NativeTypes)`.
400-
Therefore compiling a probably slow `@inbounds @fastmath` fallback loop.""" maxlog=1
398+
# @info """`LoopVectorization.check_type` returned `false`, because `LoopVectorization.check_type(::$(T)) == false`.
399+
# `LoopVectorization` currently only supports `T <: $(NativeTypes)`.
400+
# Therefore compiling a probably slow `@inbounds @fastmath` fallback loop.""" maxlog=1
401401
false
402402
end
403403
@inline check_device(::ArrayInterface.CPUPointer) = true
404404
@inline check_device(::ArrayInterface.CPUTuple) = true
405405
function check_device(x)
406-
@info """`LoopVectorization.check_args` returned `false`, because `ArrayInterface.device(::$(typeof(x))) == $x`
407-
`LoopVectorization` normally requires `ArrayInterface.CPUPointer` (exceptions include ranges, `BitVector`s, and
408-
`BitArray`s whose number of rows is a multiple of 8). Therefore compiling a probably slow `@inbounds @fastmath` fallback loop.""" maxlog=1
406+
# @info """`LoopVectorization.check_args` returned `false`, because `ArrayInterface.device(::$(typeof(x))) == $x`
407+
# `LoopVectorization` normally requires `ArrayInterface.CPUPointer` (exceptions include ranges, `BitVector`s, and
408+
# `BitArray`s whose number of rows is a multiple of 8). Therefore compiling a probably slow `@inbounds @fastmath` fallback loop.""" maxlog=1
409409
false
410410
end
411411

test/arraywrappers.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using LoopVectorization, Test#, OffsetArrays
22

33
@testset "Array Wrappers" begin
4+
@show @__LINE__
45

56
function addone!(y, x)
67
@avx for i eachindex(x,y)

test/check_empty.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function mysum_unchecked(x)
1515
end
1616

1717
@testset "Check Empty" begin
18+
@show @__LINE__
1819
x = fill(9999, 100, 10, 10);
1920
xv = view(x, :, 1:0, :);
2021
@test mysum_checked(x) == mysum_unchecked(x) == sum(x)

test/loopinductvars.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
# testset for using them in loops
33
@testset "Loop Induction Variables" begin
4+
@show @__LINE__
45
f(x) = cos(x) * log(x)
56
function avxmax(v)
67
max_x = -Inf

test/runtests.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ const START_TIME = time()
3030
@time include("loopinductvars.jl")
3131

3232
@time include("shuffleloadstores.jl")
33-
34-
@time include("zygote.jl")
33+
34+
if (v"1.5" < VERSION < v"1.7") && Sys.iswindows()
35+
println("Skipping Zygote tests.")
36+
else
37+
@time include("zygote.jl")
38+
end
3539

3640
@time include("offsetarrays.jl")
3741

test/shuffleloadstores.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ function issue209_noavx(M, G, J, H, A, B, ϕ)
173173
end
174174

175175
@testset "shuffles load/stores" begin
176+
@show @__LINE__
176177
for i 1:128
177178
ac = rand(Complex{Float64}, i);
178179
bc = rand(Complex{Float64}, i);

test/utils.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ using LoopVectorization
22
using Test
33

44
@testset "Utilities" begin
5+
@show @__LINE__
56
@test LoopVectorization.isscopedname(:(Base.OneTo), :Base, :OneTo)
67
@test LoopVectorization.isscopedname(:(A.B.C.D), (:A, :B, :C), :D)
78
@test !LoopVectorization.isscopedname(:(A.B.D), (:A, :B, :C), :D)

0 commit comments

Comments
 (0)