From 6b0eb84004f5b681f1bb892746d6598f71970750 Mon Sep 17 00:00:00 2001 From: David Reveman Date: Mon, 25 Nov 2024 09:15:12 -0500 Subject: [PATCH] build(ci): Add breeze GPU build and test job --- .github/workflows/linux-build-base.yml | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/linux-build-base.yml b/.github/workflows/linux-build-base.yml index 85b298bc909ff..c1d04d60f07fa 100644 --- a/.github/workflows/linux-build-base.yml +++ b/.github/workflows/linux-build-base.yml @@ -214,3 +214,40 @@ jobs: - name: Run Tests run: | cd _build-breeze/debug && ctest -j 8 --output-on-failure --no-tests=error + + breeze-ubuntu-gpu-relwithdebinfo: + runs-on: 4-core-ubuntu-gpu-t4 + # prevent errors when forks ff their main branch + if: ${{ github.repository == 'facebookincubator/velox' }} + name: "Breeze Ubuntu GPU debug" + env: + USE_CLANG: "${{ inputs.use-clang && 'true' || 'false' }}" + CUDA_VERSION: "12.2" + defaults: + run: + shell: bash + working-directory: velox + steps: + + - uses: actions/checkout@v4 + with: + path: velox + + - name: Install Dependencies + run: | + source scripts/setup-ubuntu.sh && install_apt_deps && install_cuda ${CUDA_VERSION} + sudo chmod 755 -R /usr/local/lib/python3.10/dist-packages + + - name: Make RelWithDebInfo Build + run: | + if [[ "${USE_CLANG}" = "true" ]]; then export CC=/usr/bin/clang-15; export CXX=/usr/bin/clang++-15; fi + cmake -S velox/experimental/breeze -B _build-breeze/relwithdebinfo \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DBUILD_GENERATE_TEST_FIXTURES=OFF \ + -DBUILD_CUDA=ON \ + -DCMAKE_NVCC_FLAGS="-arch=native" + cmake --build _build-breeze/relwithdebinfo -j 8 + + - name: Run Tests + run: | + cd _build-breeze/relwithdebinfo && ctest -j 8 --output-on-failure --no-tests=error