Skip to content

Commit

Permalink
#8082: Multi device workflow with docker integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmchiou committed May 15, 2024
1 parent f12a381 commit 5ea76eb
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 18 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/multi-device-build-and-unit-tests-frequent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
15 changes: 9 additions & 6 deletions .github/workflows/multi-device-build-and-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
15 changes: 9 additions & 6 deletions .github/workflows/multi-device-end-to-end-demos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit 5ea76eb

Please sign in to comment.