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

Fix ROCm CI #844

Merged
merged 8 commits into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from 6 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
39 changes: 23 additions & 16 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
queue: "juliagpu"
cuda: "*"
env:
OPENMPI_VER: "4.1"
OPENMPI_VER_FULL: "4.1.4"
UCX_VER: "1.12.1"
OPENMPI_VER: "5.0"
OPENMPI_VER_FULL: "5.0.3"
UCX_VER: "1.17.0"
CCACHE_DIR: "/root/ccache"
commands: |
echo "--- Install packages"
Expand Down Expand Up @@ -106,53 +106,59 @@
key: "rocm-build-openmpi"
agents:
queue: "juliagpu"
rocm: "*" # todo fix ROCM version
rocm: "*"
env:
OPENMPI_VER: "4.1"
OPENMPI_VER_FULL: "4.1.4"
UCX_VER: "1.13-rc1"
OPENMPI_VER: "5.0"
OPENMPI_VER_FULL: "5.0.3"
UCX_VER: "1.17.0"
CCACHE_DIR: "/root/ccache"
commands: |
echo "--- Install packages"
apt-get install --yes --no-install-recommends curl ccache
export PATH="/usr/lib/ccache/:$$PATH"

echo "--- Build UCX"
curl -L https://github.com/openucx/ucx/releases/download/v1.13.0-rc1/ucx-1.13.0.tar.gz --output ucx.tar.gz
curl -L https://github.com/openucx/ucx/releases/download/v$${UCX_VER}/ucx-$${UCX_VER}.tar.gz --output ucx.tar.gz
tar -zxf ucx.tar.gz
pushd ucx-*
./configure --with-rocm --enable-mt --prefix=$$(realpath ../mpi-prefix)
make -j
make install
popd

echo "--- Build OpenMPI"
curl -L https://download.open-mpi.org/release/open-mpi/v$${OPENMPI_VER}/openmpi-$${OPENMPI_VER_FULL}.tar.gz --output openmpi.tar.gz
tar -zxf openmpi.tar.gz
pushd openmpi-*
./configure --with-ucx=$$(realpath ../mpi-prefix) --prefix=$$(realpath ../mpi-prefix)
pushd openmpi-$${OPENMPI_VER_FULL}
./configure --with-ucx=$$(realpath ../mpi-prefix) --with-rocm --prefix=$$(realpath ../mpi-prefix)
make -j
make install
popd

echo "--- Package prefix"
tar -zcf mpi-prefix.tar.gz mpi-prefix/

echo "--- ccache stats"
ccache -s
artifact_paths:
- "mpi-prefix.tar.gz"

- wait

- label: "Tests -- Julia latest"
- label: "Tests -- Julia {{matrix.version}}"
matrix:
setup:
version:
- "1.10"
plugins:
- JuliaCI/julia#v1:
version: "1" # failing on 1.8
version: "{{matrix.version}}"
persist_depot_dirs: packages,artifacts,compiled
agents:
queue: "juliagpu"
rocm: "*" # todo fix ROCM version
rocm: "*"
if: build.message !~ /\[skip tests\]/
timeout_in_minutes: 60
soft_fail:
- exit_status: 1
timeout_in_minutes: 90
env:
JULIA_MPI_TEST_NPROCS: 2
JULIA_MPI_PATH: "${BUILDKITE_BUILD_CHECKOUT_PATH}/openmpi"
Expand Down Expand Up @@ -182,6 +188,7 @@
'

echo "+++ Run tests"
export JULIA_MPI_TEST_EXCLUDE="test_allreduce.jl,test_reduce.jl,test_scan.jl"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to investigate why these tests fail on AMDGPU backend. Maybe @pxl-th has an idea?

julia --color=yes --project=. -e '
import Pkg
Pkg.test("MPI"; test_args=["--backend=AMDGPU"])
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"

[compat]
Distributed = "1"
AMDGPU = "0.5.7, 0.6, 0.7, 0.8"
AMDGPU = "0.6, 0.7, 0.8, 0.9"
CUDA = "3, 4, 5"
DocStringExtensions = "0.8, 0.9"
Libdl = "1"
Expand Down
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"

[compat]
AMDGPU = "0.6, 0.7, 0.8"
AMDGPU = "0.6, 0.7, 0.8, 0.9"
CUDA = "3, 4, 5"
Loading