-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#4833: Create initial ttnn sweeps pipeline with csv upload
- Loading branch information
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: "ttnn - Run sweeps" | ||
|
||
on: | ||
schedule: | ||
- cron: "0 1,7,13,19 * * *" | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
run-ttnn-sweeps: | ||
strategy: | ||
# Do not fail-fast because we need to ensure all tests go to completion | ||
# so we try not to get hanging machines | ||
fail-fast: false | ||
matrix: | ||
arch: [grayskull] | ||
env: | ||
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }} | ||
ARCH_NAME: ${{ matrix.arch }} | ||
environment: dev | ||
runs-on: model-runner-${{ matrix.arch }} | ||
steps: | ||
- uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@main | ||
with: | ||
token: ${{ secrets.CHECKOUT_TOKEN }} | ||
- name: Set up dynamic env vars for build | ||
run: | | ||
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV | ||
- name: Build tt-metal and libs | ||
run: make build | ||
- name: Run ttnn sweeps | ||
timeout-minutes: 30 | ||
run: ./tests/scripts/run_tests.sh --tt-arch $ARCH_NAME --pipeline-type ttnn_sweeps | ||
- name: Assert that csvs exist in expected ttnn results folder | ||
run: ls -hal tests/ttnn/sweep_tests/results/*.csv | ||
- name: Upload ttnn sweep reports csvs | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ttnn-sweeps-report-csv-${{ matrix.arch }} | ||
path: tests/ttnn/sweep_tests/results/*.csv |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
run_ttnn_sweeps() { | ||
if [[ -z "$ARCH_NAME" ]]; then | ||
echo "Must provide ARCH_NAME in environment" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
if [[ -z "$TT_METAL_HOME" ]]; then | ||
echo "Must provide TT_METAL_HOME in environment" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
export PYTHONPATH=$TT_METAL_HOME | ||
source build/python_env/bin/activate | ||
|
||
python tests/ttnn/sweep_tests/run_all_tests.py | ||
} | ||
|
||
run_ttnn_sweeps |