Skip to content

Commit

Permalink
Awful test avoidance of mvp_avx on Travis 1.1, where it crashes. It w…
Browse files Browse the repository at this point in the history
…orks locally on 1.1, making it hard to debug.
  • Loading branch information
chriselrod committed Apr 3, 2020
1 parent bb31225 commit 6d299e0
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions test/miscellaneous.jl
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,11 @@
mvpavx(P, basis, coeffs)
mvpv = mvp(P, basis, coeffs)
@test mvpv mvpavx(P, basis, coeffs)
@test mvpv mvp_avx(P, basis, coeffs)
if VERSION > v"1.1"
# Locally, this passes on version 1.1
# However, it does not pass on Travis on 1.1.
@test mvpv mvp_avx(P, basis, coeffs)
end

c = rand(T,100); x = rand(T,10^4); y1 = similar(x); y2 = similar(x);
clenshaw!(y1,x,c)
Expand Down Expand Up @@ -637,19 +641,15 @@
@test s s1
@test p p1
end
if LoopVectorization.VectorizationBase.AVX2
# Travis CI fails in this case. I do not have personal access to such a machine
# making it hard to debug.
n = 511
for T [Int16, Int32, Int64]
out1 = rand(T(1):T(1_000), n);
out2 = copy(out1);
rshift_i!(out1)
rshift_i_avx!(out2)
@test out1 == out2
one_plus_i!(out1)
one_plus_i_avx!(out2)
@test out1 == out2
end
for T [Int16, Int32, Int64]
n = 8sizeof(T) - 1
out1 = rand(T(1):T(1_000), n);
out2 = copy(out1);
rshift_i!(out1)
rshift_i_avx!(out2)
@test out1 == out2
one_plus_i!(out1)
one_plus_i_avx!(out2)
@test out1 == out2
end
end

2 comments on commit 6d299e0

@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/12137

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.6.28 -m "<description of version>" 6d299e06907c00d867cddf66ef737cd4fded1bbb
git push origin v0.6.28

Please sign in to comment.