Skip to content

Commit

Permalink
distcheck: Use efa-installer for dependencies
Browse files Browse the repository at this point in the history
Use the EFA installer to get the Libfabric and MPI dependencies.
Previously, we thought we only needed Libfabric, but to build
the functional tests, we need MPI and it's better to build the
functional tests.

Signed-off-by: Raghu Raja <[email protected]>
  • Loading branch information
rajachan authored and bwbarrett committed Jun 17, 2024
1 parent 9613571 commit 1173570
Showing 1 changed file with 18 additions and 32 deletions.
50 changes: 18 additions & 32 deletions .github/workflows/distcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,22 +178,12 @@ jobs:
packages: liblttng-ust-dev
version: lttng

- name: Install Libfabric
- name: Fetch and Install EFA Installer Dependencies
run: |
# We're just doing distchecks, so it is fine if we
# just grab the latest master and built a lean build.
git clone --depth 1 https://github.com/ofiwg/libfabric.git
pushd libfabric
./autogen.sh
export CC="${{ matrix.realcc || matrix.cc }}"
./configure --prefix="$PWD/install" \
--disable-sockets \
--disable-udp \
--disable-mrail \
--disable-opx
make -j "$(nproc)"
make install
curl -O https://efa-installer.amazonaws.com/aws-efa-installer-latest.tar.gz
tar -xf aws-efa-installer-*.tar.gz
pushd aws-efa-installer/
sudo ./efa_installer.sh -y --skip-kmod
popd
- name: Build Plugin
Expand All @@ -207,11 +197,13 @@ jobs:
./autogen.sh
if [ "${{ matrix.sdk }}" == "cuda" ]
then
./configure --with-libfabric="$PWD/libfabric/install" \
./configure --with-mpi=/opt/amazon/openmpi \
--with-libfabric=/opt/amazon/efa \
--with-cuda=/usr/local/cuda/ \
--enable-tests \
--enable-platform-aws
else
./configure --with-libfabric="$PWD/libfabric/install" \
./configure --with-libfabric=/opt/amazon/efa \
--enable-neuron \
--enable-platform-aws
fi
Expand Down Expand Up @@ -280,34 +272,28 @@ jobs:
packages: cppcheck
version: codechecker-cppcheck

- name: Install Libfabric
- name: Fetch and Install EFA Installer Dependencies
run: |
# We're just doing distchecks, so it is fine if we
# just grab the latest master and built a lean build.
git clone --depth 1 https://github.com/ofiwg/libfabric.git
pushd libfabric
./autogen.sh
./configure --prefix="$PWD/install" \
--disable-sockets \
--disable-udp \
--disable-mrail \
--disable-opx
make -j "$(nproc)"
make install
curl -O https://efa-installer.amazonaws.com/aws-efa-installer-latest.tar.gz
tar -xf aws-efa-installer-*.tar.gz
pushd aws-efa-installer/
sudo ./efa_installer.sh -y --skip-kmod
popd
- name: Run Configure
run: |
./autogen.sh
if [ "${{ matrix.sdk }}" == "neuron" ]; then
./configure \
--with-libfabric="$PWD/libfabric/install" \
--with-libfabric="/opt/amazon/efa" \
--enable-neuron \
--enable-platform-aws
else
./configure \
--with-libfabric="$PWD/libfabric/install" \
--with-libfabric="/opt/amazon/efa" \
--with-mpi="/opt/amazon/openmpi" \
--with-cuda=/usr/local/cuda/ \
--enable-tests \
--enable-platform-aws
fi
Expand Down

0 comments on commit 1173570

Please sign in to comment.