Memory optimization algorithm #1299
Workflow file for this run
This file contains 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: "per-lib-checks" | |
on: [push, pull_request, workflow_dispatch] | |
concurrency: | |
group: build-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
cmake-build: | |
name: Library CMake Build | |
runs-on: ubuntu-20.04 | |
strategy: | |
max-parallel: 1 | |
matrix: | |
gpu_backend: ["cuda"] | |
fail-fast: false | |
steps: | |
- name: Checkout Git Repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Add helpers directory to path | |
run: echo "${PWD}/.github/workflows/helpers" >> $GITHUB_PATH | |
- name: Free additional space on runner | |
run: free_space_on_runner.sh | |
- name: Install nix | |
uses: cachix/install-nix-action@v25 | |
with: | |
github_access_token: '${{ secrets.GITHUB_TOKEN }}' | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: ff | |
skipPush: true | |
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: setup nix develop shell | |
uses: nicknovitski/[email protected] | |
with: | |
arguments: "--accept-flake-config .#ci" | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
# - name: Install system dependencies | |
# run: FF_GPU_BACKEND=${{ matrix.gpu_backend }} .github/workflows/helpers/install_dependencies.sh | |
# - name: Install conda and FlexFlow dependencies | |
# uses: conda-incubator/setup-miniconda@v2 | |
# with: | |
# activate-environment: flexflow | |
# environment-file: packaging/conda/environment.yml | |
# auto-activate-base: false | |
- name: Regenerate all dtgen files | |
run: | | |
proj dtgen --force | |
- name: Run cmake | |
run: | | |
cmake_${{ matrix.gpu_backend }}.sh | |
- name: Build utils | |
run: | | |
build_target.sh utils | |
- name: Build op-attrs | |
run: | | |
build_target.sh op-attrs | |
- name: Build pcg | |
run: | | |
build_target.sh pcg | |
- name: Build kernels | |
run: | | |
build_target.sh kernels | |
- name: Build substitutions | |
run: | | |
build_target.sh substitutions | |
- name: Build compiler | |
run: | | |
build_target.sh compiler | |
- name: Build substitution-generator | |
run: | | |
build_target.sh substitution-generator | |
- name: Build local-execution | |
run: | | |
build_target.sh local-execution | |
- name: Build models | |
run: | | |
build_target.sh models | |
- name: Build substitution-to-dot | |
run: | | |
build_target.sh substitution-to-dot | |
- name: Build export-model-arch | |
run: | | |
build_target.sh export-model-arch | |
- name: Test utils | |
run: | | |
test_target.sh utils | |
- name: Test op-attrs | |
run: | | |
test_target.sh op-attrs | |
- name: Test pcg | |
run: | | |
test_target.sh pcg | |
- name: Test substitutions | |
run: | | |
test_target.sh substitutions | |
- name: Test compiler | |
run: | | |
test_target.sh compiler | |
- name: Test substitution-generator | |
run: | | |
test_target.sh substitution-generator | |
- name: Test local-execution | |
run: | | |
test_target.sh local-execution | |
- name: Test models | |
run: | | |
test_target.sh models | |
- name: Generate code coverage | |
run: | | |
echo "gitwork: $GITHUB_WORKSPACE" | |
lcov --capture --directory . --output-file main_coverage.info | |
lcov --extract main_coverage.info "$GITHUB_WORKSPACE/lib/*" --output-file main_coverage.info | |
lcov --remove main_coverage.info "$GITHUB_WORKSPACE/lib/*.dtg.h" "$GITHUB_WORKSPACE/lib/*.dtg.cc" --output-file main_coverage.info | |
lcov --list main_coverage.info | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: main_coverage.info | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: false | |
verbose: true |