Skip to content

Commit

Permalink
Skip unsupported tests on PPC/ARM (#353)
Browse files Browse the repository at this point in the history
Co-authored-by: James Schloss <[email protected]>

Co-authored-by: James Schloss <[email protected]>
  • Loading branch information
vchuravy and leios authored Feb 27, 2020
1 parent 7536834 commit 414c1ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion test/test_allreduce.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ MPI.Init()

comm_size = MPI.Comm_size(MPI.COMM_WORLD)

if ArrayType != Array || Sys.iswindows() && Sys.WORD_SIZE == 32
if ArrayType != Array ||
Sys.iswindows() && Sys.WORD_SIZE == 32 ||
Sys.ARCH === :powerpc64le || Sys.ARCH === :ppc64le ||
Sys.ARCH === :aarch64 || startswith(string(Sys.ARCH), "arm")
operators = [MPI.SUM, +]
else
operators = [MPI.SUM, +, (x,y) -> 2x+y-x]
Expand Down
10 changes: 8 additions & 2 deletions test/test_reduce.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ if isroot
@test sum_mesg == sz .* mesg
end

if ArrayType != Array || Sys.iswindows() && Sys.WORD_SIZE == 32
if ArrayType != Array || Sys.iswindows() && Sys.WORD_SIZE == 32 ||
Sys.ARCH === :powerpc64le || Sys.ARCH === :ppc64le ||
Sys.ARCH === :aarch64 || startswith(string(Sys.ARCH), "arm")
operators = [MPI.SUM, +]
else
operators = [MPI.SUM, +, (x,y) -> 2x+y-x]
Expand Down Expand Up @@ -100,7 +102,11 @@ end

MPI.Barrier( MPI.COMM_WORLD )

if !(Sys.iswindows() && Sys.WORD_SIZE == 32)
if Sys.iswindows() && Sys.WORD_SIZE == 32 ||
Sys.ARCH === :powerpc64le || Sys.ARCH === :ppc64le ||
Sys.ARCH === :aarch64 || startswith(string(Sys.ARCH), "arm")
# Closures are not supported for cfunction
else

send_arr = [Double64(i)/10 for i = 1:10]

Expand Down

0 comments on commit 414c1ee

Please sign in to comment.