-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#8082: Multi device workflow with docker integration
- Loading branch information
Showing
3 changed files
with
29 additions
and
18 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 |
---|---|---|
|
@@ -19,21 +19,26 @@ jobs: | |
env: | ||
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }} | ||
ARCH_NAME: ${{ matrix.runner-info.arch }} | ||
CONFIG: Release | ||
environment: dev | ||
runs-on: ${{ matrix.runner-info.runs-on }} | ||
steps: | ||
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected] | ||
- name: Set up dyanmic env vars for build | ||
- name: Set up dynamic env vars for build | ||
run: | | ||
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV | ||
- uses: ./.github/actions/load-docker-image | ||
- name: Build tt-metal and libs | ||
run: | | ||
PYTHON_ENV_DIR=$(pwd)/build/python_env ./build_metal.sh | ||
./scripts/docker/run_docker_cmd.sh -e PYTHON_ENV_DIR=$(pwd)/build/python_env -- ./build_metal.sh | ||
- name: Build tt-metal CPP tests | ||
run: cmake --build build --target tests -- -j`nproc` | ||
run: | ||
./scripts/docker/run_docker_cmd.sh -- cmake --build build --target tests -- -j`nproc` | ||
- name: Run frequent regression tests | ||
timeout-minutes: 60 | ||
run: | | ||
source build/python_env/bin/activate | ||
export PYTHONPATH=$TT_METAL_HOME | ||
./tests/scripts/run_tests.sh --tt-arch $ARCH_NAME --pipeline-type frequent_multi_device --dispatch-mode "" | ||
./scripts/docker/run_docker_cmd.sh --device /dev/tenstorrent -- \ | ||
/bin/bash -c "source build/python_env/bin/activate \ | ||
&& source build/python_env/bin/activate \ | ||
&& export PYTHONPATH=$TT_METAL_HOME \ | ||
&& ./tests/scripts/run_tests.sh --tt-arch $ARCH_NAME --pipeline-type frequent_multi_device --dispatch-mode" |
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 |
---|---|---|
|
@@ -36,17 +36,20 @@ jobs: | |
runs-on: ${{ matrix.test-group.runs-on }} | ||
steps: | ||
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected] | ||
- name: Set up dyanmic env vars for build | ||
- name: Set up dynamic env vars for build | ||
run: | | ||
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV | ||
- uses: ./.github/actions/load-docker-image | ||
- name: Build tt-metal and libs | ||
run: | | ||
PYTHON_ENV_DIR=$(pwd)/build/python_env ./build_metal.sh | ||
./scripts/docker/run_docker_cmd.sh -e PYTHON_ENV_DIR=$(pwd)/build/python_env -- ./build_metal.sh | ||
- name: Build tt-metal CPP tests | ||
run: cmake --build build --target tests -- -j`nproc` | ||
run: ./scripts/docker/run_docker_cmd.sh -- cmake --build build --target tests -- -j`nproc` | ||
- name: Run pre/post regression tests | ||
timeout-minutes: 120 | ||
run: | | ||
source build/python_env/bin/activate | ||
export PYTHONPATH=$TT_METAL_HOME | ||
${{ matrix.test-group.cmd }} | ||
./scripts/docker/run_docker_cmd.sh --device /dev/tenstorrent -- \ | ||
/bin/bash -c "source build/python_env/bin/activate \ | ||
&& source build/python_env/bin/activate \ | ||
&& export PYTHONPATH=$TT_METAL_HOME \ | ||
&& ${{ matrix.test-group.cmd }}" |
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 |
---|---|---|
|
@@ -31,17 +31,20 @@ jobs: | |
runs-on: ${{ matrix.test-group.runs-on }} | ||
steps: | ||
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected] | ||
- name: Set up dyanmic env vars for build | ||
- name: Set up dynamic env vars for build | ||
run: | | ||
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV | ||
- name: Build tt-metal and libs | ||
run: | | ||
PYTHON_ENV_DIR=$(pwd)/build/python_env ./build_metal.sh | ||
./scripts/docker/run_docker_cmd.sh -- PYTHON_ENV_DIR=$(pwd)/build/python_env ./build_metal.sh | ||
- name: Build tt-metal CPP tests | ||
run: cmake --build build --target tests -- -j`nproc` | ||
run: | | ||
./scripts/docker/run_docker_cmd.sh -- cmake --build build --target tests -- -j`nproc` | ||
- name: Run pre/post regression tests | ||
timeout-minutes: 180 | ||
run: | | ||
source build/python_env/bin/activate | ||
export PYTHONPATH=$TT_METAL_HOME | ||
${{ matrix.test-group.cmd }} | ||
./scripts/docker/run_docker_cmd.sh --device /dev/tenstorrent -- \ | ||
/bin/bash -c "source build/python_env/bin/activate \ | ||
&& source build/python_env/bin/activate \ | ||
&& export PYTHONPATH=$TT_METAL_HOME \ | ||
&& ${{ matrix.test-group.cmd }}" |