Skip to content

Commit

Permalink
distcheck: Use the EFA installer like the other steps
Browse files Browse the repository at this point in the history
Signed-off-by: Raghu Raja <[email protected]>
  • Loading branch information
rajachan committed May 21, 2024
1 parent bdba66b commit 6346308
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/distcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
run: |
curl -O https://efa-installer.amazonaws.com/aws-efa-installer-${{ matrix.efainstaller }}.tar.gz
tar -xvf aws-efa-installer-*.tar.gz
cd aws-efa-installer/RPMS/ALINUX2/x86_64
find . | grep rpm$ | xargs sudo yum -y localinstall
pushd aws-efa-installer/
sudo ./efa_installer.sh -y --skip-kmod
popd
- name: Install hwloc, utilities.
run: |
Expand Down Expand Up @@ -96,21 +97,12 @@ jobs:
# Install Neuron Runtime
sudo apt-get install aws-neuronx-runtime-lib -y
- 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 \
CC=${{ matrix.cc }}
make -j $(nproc)
make install
curl -O https://efa-installer.amazonaws.com/aws-efa-installer-latest.tar.gz
tar -xvf aws-efa-installer-*.tar.gz
pushd aws-efa-installer/
sudo ./efa_installer.sh -y --skip-kmod
popd
- name: Build Plugin
Expand All @@ -122,12 +114,14 @@ jobs:
./autogen.sh
if [ ${{ matrix.sdk }} == "cuda" ]
then
./configure --with-libfabric=$PWD/libfabric/install \
./configure --with-libfabric=/opt/amazon/efa/ \
--with-mpi=/opt/amazon/openmpi/ \
--with-cuda=/usr/local/cuda/ \
--enable-platform-aws \
CC=${{ matrix.cc }}
else
./configure --with-libfabric=$PWD/libfabric/install \
./configure --with-libfabric=/opt/amazon/efa/ \
--with-mpi=/opt/amazon/openmpi/ \
--enable-neuron \
--enable-platform-aws \
CC=${{ matrix.cc }}
Expand Down

0 comments on commit 6346308

Please sign in to comment.