Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip unsupported tests on PPC/ARM #353

Merged
merged 1 commit into from
Feb 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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