Skip to content

Commit

Permalink
#0: More test structuring
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarwalTT committed Nov 12, 2024
1 parent 2322700 commit 4ff7ed1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ On slow dispatch, to run another specific test, the equivalent would be:
2. Run with the slow dispatch mode:
```
export TT_METAL_SLOW_DISPATCH_MODE=1
./build/test/tt_metal/unit_tests/fast_dispatch --gtest_filter="DeviceSingleCardBufferFixture.TestL1BuffersAllocatedTopDown"
./build/test/tt_metal/unit_tests/unit_tests_api --gtest_filter="DeviceSingleCardBufferFixture.TestL1BuffersAllocatedTopDown"
```

We have split our tests into the two dispatch modes for less pollution of state
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/run_testpoint_perprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

DEBUG = False
TT_METAL_HOME = os.environ["TT_METAL_HOME"]
DEFAULT_GTEST = f"{TT_METAL_HOME}/build/test/tt_metal/unit_tests"
DEFAULT_GTEST = f"{TT_METAL_HOME}/build/test/tt_metal/unit_tests_api"


def extract_list_of_test_points(args: argparse.Namespace):
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/t3000/run_t3000_unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ run_t3000_ttmetal_tests() {
TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests_eth --gtest_filter="DeviceFixture.ActiveEthKernelsSendInterleavedBufferAllConnectedChips" ; fail+=$?
TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests_eth --gtest_filter="DeviceFixture.ActiveEthKernelsDirectRingGatherAllChips" ; fail+=$?
TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests_eth --gtest_filter="DeviceFixture.ActiveEthKernelsInterleavedRingGatherAllChips" ; fail+=$?
TT_METAL_ENABLE_REMOTE_CHIP=1 ./build/test/tt_metal/unit_tests_fast_dispatch --gtest_filter="CommandQueueSingleCard.*Fixture.*" ; fail+=$?
./build/test/tt_metal/unit_tests_fast_dispatch --gtest_filter="CommandQueueMultiDevice.*Fixture.*" ; fail+=$?
TT_METAL_ENABLE_REMOTE_CHIP=1 ./build/test/tt_metal/unit_tests_dispatch --gtest_filter="CommandQueueSingleCard.*Fixture.*" ; fail+=$?
./build/test/tt_metal/unit_tests_dispatch --gtest_filter="CommandQueueMultiDevice.*Fixture.*" ; fail+=$?
./build/test/tt_metal/unit_tests_debug_tools --gtest_filter="DPrintFixture.*:WatcherFixture.*" ; fail+=$?

# Record the end time
Expand Down
8 changes: 4 additions & 4 deletions tests/scripts/tg/run_tg_unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ run_tg_tests() {

echo "LOG_METAL: running run_tg_unit_tests"

TT_METAL_ENABLE_REMOTE_CHIP=1 ./build/test/tt_metal/unit_tests_fast_dispatch --gtest_filter="CommandQueueSingleCardFixture.*"
TT_METAL_ENABLE_REMOTE_CHIP=1 ./build/test/tt_metal/unit_tests_dispatch --gtest_filter="CommandQueueSingleCard.*Fixture.*"
./build/test/ttnn/galaxy_unit_tests_ttnn
TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests_galaxy --gtest_filter="GalaxyFixture.*:TGFixture.*"
./build/test/tt_metal/unit_tests_galaxy --gtest_filter="GalaxyFixture.*:TGFixture.*"
TT_METAL_GTEST_NUM_HW_CQS=2 ./build/test/tt_metal/unit_tests_fast_dispatch_single_chip_multi_queue --gtest_filter="MultiCommandQueueMultiDeviceFixture.*"
TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests_multichip --gtest_filter="GalaxyFixture.*:TGFixture.*"
./build/test/tt_metal/unit_tests_multichip --gtest_filter="GalaxyFixture.*:TGFixture.*"
TT_METAL_GTEST_NUM_HW_CQS=2 ./build/test/tt_metal/unit_tests_dispatch --gtest_filter="MultiCommandQueueMultiDevice.*Fixture.*"

}

Expand Down
6 changes: 3 additions & 3 deletions tests/scripts/tgg/run_tgg_unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ run_tgg_tests() {

echo "LOG_METAL: running run_tgg_unit_tests"

TT_METAL_ENABLE_REMOTE_CHIP=1 ./build/test/tt_metal/unit_tests_fast_dispatch --gtest_filter="CommandQueueSingleCardFixture.*"
TT_METAL_ENABLE_REMOTE_CHIP=1 ./build/test/tt_metal/unit_tests_dispatch --gtest_filter="CommandQueueSingleCard.*Fixture.*"
./build/test/ttnn/galaxy_unit_tests_ttnn
TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests_galaxy --gtest_filter="GalaxyFixture.*:TGGFixture.*"
./build/test/tt_metal/unit_tests_galaxy --gtest_filter="GalaxyFixture.*:TGGFixture.*"
TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests_multichip --gtest_filter="GalaxyFixture.*:TGGFixture.*"
./build/test/tt_metal/unit_tests_multichip --gtest_filter="GalaxyFixture.*:TGGFixture.*"
pytest -s tests/ttnn/distributed/test_mesh_device_TGG.py
}

Expand Down

0 comments on commit 4ff7ed1

Please sign in to comment.