File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,15 @@ steps:
50
50
if : build.message !~ /\[skip tests\]/
51
51
timeout_in_minutes : 60
52
52
env :
53
- JULIA_MPI_TEST_ARRAYTYPE : Array
53
+ JULIA_MPI_TEST_ARRAYTYPE : CuArray
54
54
JULIA_MPI_TEST_NPROCS : 2
55
55
JULIA_MPI_PATH : " ${BUILDKITE_BUILD_CHECKOUT_PATH}/openmpi"
56
56
OMPI_ALLOW_RUN_AS_ROOT : 1
57
57
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM : 1
58
58
OMPI_MCA_btl_vader_single_copy_mechanism : ' none' # https://github.com/open-mpi/ompi/issues/4948
59
59
OPAL_PREFIX : " ${BUILDKITE_BUILD_CHECKOUT_PATH}/openmpi" # Should we set this for the user?
60
60
JULIA_CUDA_MEMORY_POOL : " none"
61
+ soft_fail : true
61
62
commands : |
62
63
echo "--- Configure MPI"
63
64
buildkite-agent artifact download --step "Build OpenMPI -- CUDA" openmpi.tar.gz .
@@ -90,14 +91,15 @@ steps:
90
91
if : build.message !~ /\[skip tests\]/
91
92
timeout_in_minutes : 60
92
93
env :
93
- JULIA_MPI_TEST_ARRAYTYPE : Array
94
+ JULIA_MPI_TEST_ARRAYTYPE : CuArray
94
95
JULIA_MPI_TEST_NPROCS : 2
95
96
JULIA_MPI_PATH : " ${BUILDKITE_BUILD_CHECKOUT_PATH}/openmpi"
96
97
OMPI_ALLOW_RUN_AS_ROOT : 1
97
98
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM : 1
98
99
OMPI_MCA_btl_vader_single_copy_mechanism : ' none' # https://github.com/open-mpi/ompi/issues/4948
99
100
OPAL_PREFIX : " ${BUILDKITE_BUILD_CHECKOUT_PATH}/openmpi" # Should we set this for the user?
100
101
JULIA_CUDA_MEMORY_POOL : " none"
102
+ soft_fail : true
101
103
commands : |
102
104
echo "--- Configure MPI"
103
105
buildkite-agent artifact download --step "Build OpenMPI -- CUDA" openmpi.tar.gz .
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ using MPIPreferences
6
6
using DoubleFloats
7
7
if get (ENV , " JULIA_MPI_TEST_ARRAYTYPE" , " " ) == " CuArray"
8
8
import CUDA
9
+ CUDA. version ()
10
+ CUDA. precompile_runtime ()
9
11
ArrayType = CUDA. CuArray
10
12
else
11
13
ArrayType = Array
Original file line number Diff line number Diff line change @@ -15,10 +15,14 @@ MPI.Init()
15
15
comm = MPI. COMM_WORLD
16
16
17
17
root = 0
18
- Random. seed! (17 )
19
18
matsize = (17 ,17 )
20
19
21
20
for T in Base. uniontypes (MPI. MPIDatatype)
21
+ # This test depends on the stability of the rng and we have observed with
22
+ # CUDA.jl that it is not gurantueed that the same number of rand calls will
23
+ # occur on each rank. (This is a hypothesis). To be sure we shall seed the rng
24
+ # just before we call rand.
25
+ Random. seed! (17 )
22
26
A = ArrayType (rand (T, matsize))
23
27
B = MPI. Comm_rank (comm) == root ? A : similar (A)
24
28
MPI. Bcast! (B, comm; root= root)
You can’t perform that action at this time.
0 commit comments