Skip to content

Commit

Permalink
#0: move multi queue C++ tests into C++ bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
TT-billteng committed May 26, 2024
1 parent 36d305b commit a0cfffc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/cpp-post-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
]
test-group: [
{name: C++, cmd: ./tests/scripts/run_cpp_unit_tests.sh},
{name: C++ multi-queue, cmd: ./tests/scripts/run_tests.sh --tt-arch $ARCH_NAME --pipeline-type post_commit --dispatch-mode fast-multi-queue-single-device }
]
name: ${{ matrix.test-group.name }} ${{ matrix.runner-info.arch }} ${{ matrix.runner-info.name }}
env:
Expand Down
1 change: 1 addition & 0 deletions tests/scripts/run_cpp_unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ if [[ ! -z "$TT_METAL_SLOW_DISPATCH_MODE" ]]; then
env python tests/scripts/run_tt_eager.py --dispatch-mode slow
else
./build/test/tt_metal/unit_tests_fast_dispatch
TT_METAL_NUM_HW_CQS=2 ./build/test/tt_metal/unit_tests_fast_dispatch_single_chip_multi_queue --gtest_filter=MultiCommandQueueSingleDeviceFixture.*
if [[ "$ARCH_NAME" == "wormhole_b0" ]]; then
WH_ARCH_YAML=wormhole_b0_80_arch_eth_dispatch.yaml ./build/test/tt_metal/unit_tests_fast_dispatch
fi
Expand Down
6 changes: 2 additions & 4 deletions tests/scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ run_post_commit_pipeline_tests() {
./tests/scripts/run_pre_post_commit_regressions_slow_dispatch.sh
elif [[ $dispatch_mode == "fast" ]]; then
./tests/scripts/run_pre_post_commit_regressions_fast_dispatch.sh
elif [[ $dispatch_mode == "fast-multi-queue-single-device" ]]; then
TT_METAL_NUM_HW_CQS=2 ./build/test/tt_metal/unit_tests_fast_dispatch_single_chip_multi_queue --gtest_filter=MultiCommandQueueSingleDeviceFixture.*
fi
}

Expand Down Expand Up @@ -439,7 +437,7 @@ main() {
dispatch_mode=${dispatch_mode:-$default_dispatch_mode}
pipeline_type=${pipeline_type:-$default_pipeline_type}

available_dispatch_modes=("fast" "slow" "fast-multi-queue-single-device")
available_dispatch_modes=("fast" "slow")
available_tt_archs=("grayskull" "wormhole_b0")

# Validate arguments
Expand Down Expand Up @@ -469,4 +467,4 @@ main() {
fi
}

main "$@"
main "$@"

0 comments on commit a0cfffc

Please sign in to comment.