wip: tunercheck action #1
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Build Checks | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Fetch and Install EFA Installer Dependencies | |
| run: | | |
| 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 | |
| run: | | |
| set -x | |
| export CC="cc" | |
| export CXX="c++" | |
| # actions/checkout@v4 would drop the plugin source in $PWD, | |
| # so go ahead and build it. | |
| ./autogen.sh | |
| ./configure --with-mpi=/opt/amazon/openmpi \ | |
| --with-libfabric=/opt/amazon/efa \ | |
| --enable-tests=yes \ | |
| --enable-platform-aws \ | |
| --with-cuda=/usr/local/cuda/ \ | |
| --prefix=$PWD/install | |
| - name: Call `make` | |
| run: make V=1 | |
| - name: Call `make install` | |
| run: sudo make install V=1 | |
| - name: Install Python Dependencies | |
| run: pip install uv | |
| - name: Tuner Check | |
| run: | | |
| run show-tuner-decisions $PWD/install/lib/libnccl-ofi-tuner.so \ | |
| --min-ranks-per-node 1 --max-ranks-per-node 8 \ | |
| --min-nnodes 2 --max-nnodes 2048 | |
| - name: Upload build logs | |
| if: failure() | |
| uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 | |
| with: | |
| name: tuner-decisions | |
| path: tuner-decisions.log |