Skip to content

Commit 414c1ee

Browse files
vchuravyleios
andauthored
Skip unsupported tests on PPC/ARM (#353)
Co-authored-by: James Schloss <[email protected]> Co-authored-by: James Schloss <[email protected]>
1 parent 7536834 commit 414c1ee

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

test/test_allreduce.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ MPI.Init()
1212

1313
comm_size = MPI.Comm_size(MPI.COMM_WORLD)
1414

15-
if ArrayType != Array || Sys.iswindows() && Sys.WORD_SIZE == 32
15+
if ArrayType != Array ||
16+
Sys.iswindows() && Sys.WORD_SIZE == 32 ||
17+
Sys.ARCH === :powerpc64le || Sys.ARCH === :ppc64le ||
18+
Sys.ARCH === :aarch64 || startswith(string(Sys.ARCH), "arm")
1619
operators = [MPI.SUM, +]
1720
else
1821
operators = [MPI.SUM, +, (x,y) -> 2x+y-x]

test/test_reduce.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ if isroot
4040
@test sum_mesg == sz .* mesg
4141
end
4242

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

101103
MPI.Barrier( MPI.COMM_WORLD )
102104

103-
if !(Sys.iswindows() && Sys.WORD_SIZE == 32)
105+
if Sys.iswindows() && Sys.WORD_SIZE == 32 ||
106+
Sys.ARCH === :powerpc64le || Sys.ARCH === :ppc64le ||
107+
Sys.ARCH === :aarch64 || startswith(string(Sys.ARCH), "arm")
108+
# Closures are not supported for cfunction
109+
else
104110

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

0 commit comments

Comments
 (0)