Skip to content

Commit

Permalink
Merge pull request #72 from jipolanco/fix-ci
Browse files Browse the repository at this point in the history
Fix CI issues
  • Loading branch information
jipolanco authored Jan 31, 2023
2 parents c796146 + 318e0b8 commit 6b7602d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
run: |
using Pkg
Pkg.instantiate(verbose = true)
Pkg.precompile(strict = true)
Pkg.precompile(strict = false)
- uses: julia-actions/julia-runtest@v1

Expand Down
3 changes: 1 addition & 2 deletions test/reductions.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using MPI
using PencilArrays
using Test
using Compat: Splat

MPI.Init()

Expand Down Expand Up @@ -30,7 +29,7 @@ fill!(u, 2myid)
a = @inferred sum(abs2, û; init = zero(eltype(û))) # `init` needed for inference when eltype(û) = Complex{Int32}...
# These should all be equivalent:
b = @inferred mapreduce((x, y) -> real(x * conj(y)), +, û, v̂)
c = @inferred sum(Splat((x, y) -> real(x * conj(y))), zip(û, v̂))
c = @inferred sum(Base.splat((x, y) -> real(x * conj(y))), zip(û, v̂))
d = @inferred sum(xs -> real(xs[1] * conj(xs[2])), zip(û, v̂))
@test a == b == c == d
end
Expand Down

0 comments on commit 6b7602d

Please sign in to comment.