Skip to content

Commit 9efc4a3

Browse files
committed
Add binary example to utils. Add utils to paths-ignore for running CI
1 parent 8aec893 commit 9efc4a3

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/workflows/ci-julia-nightly.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@ on:
33
pull_request:
44
branches:
55
- master
6+
paths-ignore:
7+
- 'LICENSE.md'
8+
- 'README.md'
9+
- 'utils/*'
10+
- '.github/workflows/TagBot.yml'
611
push:
712
branches:
813
- master
14+
paths-ignore:
15+
- 'LICENSE.md'
16+
- 'README.md'
17+
- 'utils/*'
18+
- '.github/workflows/TagBot.yml'
919
tags: '*'
1020
jobs:
1121
test-julia-nightly:

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ on:
66
paths-ignore:
77
- 'LICENSE.md'
88
- 'README.md'
9+
- 'utils/*'
910
- '.github/workflows/TagBot.yml'
1011
push:
1112
branches:
1213
- master
1314
paths-ignore:
1415
- 'LICENSE.md'
1516
- 'README.md'
17+
- 'utils/*'
1618
- '.github/workflows/TagBot.yml'
1719
tags: '*'
1820
jobs:

utils/generate_costs.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,17 @@ let
9393
vu2 = VectorizationBase.VecUnroll(ntuple(_ -> Vec(ntuple(_ -> 10randn(), pick_vector_width(Float64))...), Val(2)));
9494
vu4 = VectorizationBase.VecUnroll(ntuple(_ -> Vec(ntuple(_ -> 10randn(), pick_vector_width(Float64))...), Val(4)));
9595
vu8 = VectorizationBase.VecUnroll(ntuple(_ -> Vec(ntuple(_ -> 10randn(), pick_vector_width(Float64))...), Val(8)));
96-
for binaryf [log, log2, log10, log1p, exp, exp2, exp10, expm1, sin, cos]
96+
for unaryf [log, log2, log10, log1p, exp, exp2, exp10, expm1, sin, cos]
9797
rt1 = unrolltest(f, vx)
9898
rt2 = unrolltest(f, vu2)
9999
rt4 = unrolltest(f, vu4)
100100
rt8 = unrolltest(f, vu8)
101101
end
102+
for binaryf [+, *, ^]
103+
rt1 = unrolltest(f, vx, vx)
104+
rt2 = unrolltest(f, vu2, vu2)
105+
rt4 = unrolltest(f, vu4, vu4)
106+
rt8 = unrolltest(f, vu8, vu8)
107+
end
102108
end
103109

0 commit comments

Comments
 (0)