-
Notifications
You must be signed in to change notification settings - Fork 74
53 lines (50 loc) · 1.7 KB
/
ttnn-run-sweeps.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: "ttnn - Run sweeps"
on:
schedule:
- cron: "0 1,7,13,19 * * *"
workflow_dispatch:
workflow_call:
jobs:
build-artifact:
uses: ./.github/workflows/build-artifact.yaml
with:
arch: '["grayskull"]'
secrets: inherit
ttnn-sweeps:
needs: build-artifact
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/[email protected]
- name: Set up dynamic env vars for build
run: |
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV
- uses: actions/download-artifact@v4
with:
name: TTMetal_build_${{ matrix.arch }}
- name: Extract files
run: tar -xvf ttm_${{ matrix.arch }}.tar
- uses: ./.github/actions/install-python-deps
- name: Run ttnn sweeps
timeout-minutes: 30
run: |
source ${{ github.workspace }}/python_env/bin/activate
cd $TT_METAL_HOME
export PYTHONPATH=$TT_METAL_HOME
./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@v4
with:
name: ttnn-sweeps-report-csv-${{ matrix.arch }}
path: tests/ttnn/sweep_tests/results/*.csv