Skip to content

Commit

Permalink
Merge branch 'master' into lr/rocm-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored Jun 21, 2024
2 parents cf4c030 + 690faae commit 9eb4f6b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@
matrix:
setup:
version:
# - "1.6"
# - "1.7"
# - "1.8"
# - "1.9"
- "1.6"
- "1.7"
- "1.8"
- "1.9"
- "1.10"
concurrency: 1
concurrency_group: mpi_cuda
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.version}}"
Expand Down Expand Up @@ -104,7 +106,7 @@
key: "rocm-build-openmpi"
agents:
queue: "juliagpu"
rocm: "*" # todo fix ROCM version
rocm: "*"
env:
OPENMPI_VER: "5.0"
OPENMPI_VER_FULL: "5.0.3"
Expand Down
3 changes: 3 additions & 0 deletions src/environment.jl
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ provides a mechanism to check, so it will return `false` with other implementati
This can be overriden by setting the `JULIA_MPI_HAS_CUDA` environment variable to `true`
or `false`.
!!! note
For OpenMPI or OpenMPI-based implementations you first need to call [Init()](@ref).
"""
function has_cuda()
flag = get(ENV, "JULIA_MPI_HAS_CUDA", nothing)
Expand Down
5 changes: 5 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ using DoubleFloats
end
CUDA.precompile_runtime()
ArrayType = CUDA.CuArray

@info """
Running CUDA tests. Ensure that your MPI implementation is
CUDA-aware using `MPI.has_cuda` before reporting issues.
"""
elseif backend_name == "AMDGPU"
Pkg.add("AMDGPU")
ENV["JULIA_MPI_TEST_ARRAYTYPE"] = "ROCArray"
Expand Down

0 comments on commit 9eb4f6b

Please sign in to comment.