Skip to content

Commit

Permalink
#14095: Move ccl unit tests to separate directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Aswinmcw committed Oct 24, 2024
1 parent 697f774 commit bf2b455
Show file tree
Hide file tree
Showing 20 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion tests/nightly/t3000/ccl/test_all_gather_nightly.py
2 changes: 1 addition & 1 deletion tests/nightly/t3000/ccl/test_reduce_scatter_nightly.py
2 changes: 1 addition & 1 deletion tests/scripts/run_profiler_regressions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ run_additional_T3000_test(){
remove_default_log_locations
mkdir -p $PROFILER_ARTIFACTS_DIR

./tt_metal/tools/profiler/profile_this.py -c "'pytest tests/ttnn/unit_tests/operations/test_all_gather.py::test_all_gather_on_t3000_post_commit_for_profiler_regression'" | tee $PROFILER_ARTIFACTS_DIR/test_out.log
./tt_metal/tools/profiler/profile_this.py -c "'pytest tests/ttnn/unit_tests/operations/ccl/test_all_gather.py::test_all_gather_on_t3000_post_commit_for_profiler_regression'" | tee $PROFILER_ARTIFACTS_DIR/test_out.log

if cat $PROFILER_ARTIFACTS_DIR/test_out.log | grep "SKIPPED"
then
Expand Down
8 changes: 4 additions & 4 deletions tests/scripts/t3000/run_t3000_frequent_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ run_t3000_tteager_tests() {

echo "LOG_METAL: Running run_t3000_tteager_tests"

pytest -n auto tests/ttnn/unit_tests/operations/test_all_gather.py -k post_commit ; fail+=$?
pytest -n auto tests/ttnn/unit_tests/operations/test_all_gather_matmul.py -k post_commit ; fail+=$?
pytest -n auto tests/ttnn/unit_tests/operations/test_reduce_scatter_post_commit.py ; fail+=$?
pytest -n auto tests/ttnn/unit_tests/operations/test_all_reduce_t3000_frequent.py ; fail+=$?
pytest -n auto tests/ttnn/unit_tests/operations/ccl/test_all_gather.py -k post_commit ; fail+=$?
pytest -n auto tests/ttnn/unit_tests/operations/ccl/test_all_gather_matmul.py -k post_commit ; fail+=$?
pytest -n auto tests/ttnn/unit_tests/operations/ccl/test_reduce_scatter_post_commit.py ; fail+=$?
pytest -n auto tests/ttnn/unit_tests/operations/ccl/test_all_reduce_t3000_frequent.py ; fail+=$?

# distributed layernorm
WH_ARCH_YAML=wormhole_b0_80_arch_eth_dispatch.yaml pytest tests/ttnn/unit_tests/operations/test_distributed_layernorm.py ; fail+=$?
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/tg/run_tg_frequent_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ run_tg_tests() {
pytest -n auto models/demos/tg/llama3_70b/tests/test_llama_decoder_galaxy.py --timeout=600 ; fail+=$?
pytest -n auto models/demos/tg/llama3_70b/tests/test_llama_model_galaxy_ci.py --timeout=800 ; fail+=$?
pytest -n auto models/demos/tg/resnet50/tests/test_resnet50_performant.py ; fail+=$?
pytest -n auto tests/ttnn/unit_tests/operations/test_all_gather_TG_post_commit.py --timeout=300 ; fail+=$?
pytest -n auto tests/ttnn/unit_tests/operations/ccl/test_all_gather_TG_post_commit.py --timeout=300 ; fail+=$?

if [[ $fail -ne 0 ]]; then
echo "LOG_METAL: run_tg_frequent_tests failed"
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/tg/run_tg_nightly_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ run_tg_llama3_70b_tests() {

echo "LOG_METAL: Running run_tg_llama3_70b_tests"

pytest tests/ttnn/unit_tests/operations/test_all_gather_TG_nightly.py ; fail+=$?
pytest tests/ttnn/unit_tests/operations/ccl/test_all_gather_TG_nightly.py ; fail+=$?

# Falcon40B prefill 60 layer end to end with 10 loops; we need 8x8 grid size
pytest tests/nightly/tg/models/demos/tg/llama3_70b ; fail+=$?
Expand Down
2 changes: 1 addition & 1 deletion tests/sweep_framework/sweeps/ccl/all_gather_n300.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from tests.ttnn.utils_for_testing import start_measuring_time, stop_measuring_time
from loguru import logger
from tests.tt_eager.python_api_testing.sweep_tests.comparison_funcs import comp_equal, comp_pcc
from tests.ttnn.unit_tests.operations.test_all_gather import is_unsupported_case_n300
from tests.ttnn.unit_tests.operations.ccl.test_all_gather import is_unsupported_case_n300

# Override the default timeout in seconds for hang detection.
TIMEOUT = 30
Expand Down
2 changes: 1 addition & 1 deletion tests/sweep_framework/sweeps/ccl/line_all_gather.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from tests.ttnn.utils_for_testing import start_measuring_time, stop_measuring_time
from loguru import logger
from tests.tt_eager.python_api_testing.sweep_tests.comparison_funcs import comp_equal, comp_pcc
from tests.ttnn.unit_tests.operations.test_all_gather import is_unsupported_case
from tests.ttnn.unit_tests.operations.ccl.test_all_gather import is_unsupported_case
from ttnn import ShardTensorToMesh

# Override the default timeout in seconds for hang detection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest
import ttnn
from models.utility_functions import skip_for_grayskull
from tests.ttnn.unit_tests.operations.test_all_gather import (
from tests.ttnn.unit_tests.operations.ccl.test_all_gather import (
run_all_gather_on_n300_impl,
run_all_gather_sharded_n300,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from loguru import logger
import ttnn
from tests.tt_eager.python_api_testing.sweep_tests.comparison_funcs import comp_equal, comp_pcc
from tests.ttnn.unit_tests.operations.test_all_gather_TG_post_commit import (
from tests.ttnn.unit_tests.operations.ccl.test_all_gather_TG_post_commit import (
run_line_all_gather_on_TG_with_mesh_tensor_along_rows,
)
from models.utility_functions import skip_for_grayskull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from models.utility_functions import skip_for_grayskull, get_devices_for_t3000
import itertools
from ttnn import ShardTensorToMesh
from tests.ttnn.unit_tests.operations.test_all_gather import run_all_gather_sharded
from tests.ttnn.unit_tests.operations.ccl.test_all_gather import run_all_gather_sharded


@pytest.mark.timeout(120)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ttnn import ShardTensorToMesh, ConcatMeshToTensor
from tests.tt_eager.python_api_testing.sweep_tests.comparison_funcs import comp_equal, comp_pcc
from models.utility_functions import skip_for_grayskull, skip_for_wormhole_b0
from tests.ttnn.unit_tests.operations.test_all_gather import is_unsupported_case
from tests.ttnn.unit_tests.operations.ccl.test_all_gather import is_unsupported_case


USE_NON_FUSED = False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import ttnn
from tests.tt_eager.python_api_testing.sweep_tests.comparison_funcs import comp_equal, comp_pcc
from models.utility_functions import skip_for_grayskull
from tests.ttnn.unit_tests.operations.test_all_gather import (
from tests.ttnn.unit_tests.operations.ccl.test_all_gather import (
is_unsupported_case,
run_all_gather_on_t3000_impl,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest
import ttnn
from models.utility_functions import skip_for_grayskull
from tests.ttnn.unit_tests.operations.test_reduce_scatter_post_commit import (
from tests.ttnn.unit_tests.operations.ccl.test_reduce_scatter_post_commit import (
run_reduce_scatter_test,
run_reduce_scatter_sharded_test,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import ttnn
from tests.tt_eager.python_api_testing.sweep_tests.comparison_funcs import comp_equal, comp_pcc
from models.utility_functions import skip_for_grayskull, get_devices_for_t3000
from tests.ttnn.unit_tests.operations.test_reduce_scatter_post_commit import run_reduce_scatter_sharded_test
from tests.ttnn.unit_tests.operations.ccl.test_reduce_scatter_post_commit import run_reduce_scatter_sharded_test


@pytest.mark.timeout(120)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import pytest
import ttnn
from tests.ttnn.unit_tests.operations.test_reduce_scatter_post_commit import (
from tests.ttnn.unit_tests.operations.ccl.test_reduce_scatter_post_commit import (
run_reduce_scatter_test,
)
from models.utility_functions import skip_for_grayskull
Expand Down

0 comments on commit bf2b455

Please sign in to comment.