forked from tenstorrent/tt-metal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
29 lines (20 loc) · 700 Bytes
/
Copy pathconftest.py
File metadata and controls
29 lines (20 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# SPDX-FileCopyrightText: © 2025 Tenstorrent AI ULC
# SPDX-License-Identifier: Apache-2.0
import pytest
import gc
import ttnn
@pytest.fixture(autouse=True)
def ensure_gc():
gc.collect()
@pytest.fixture(autouse=True)
def ensure_devices(ensure_devices_tg):
pass
@pytest.fixture
def device_params(request, galaxy_type):
# Get param dict passed in from test parametrize (or default to empty dict)
params = getattr(request, "param", {}).copy()
if "fabric_config" in params and params["fabric_config"] == True:
params["fabric_config"] = (
ttnn.FabricConfig.FABRIC_1D_RING if galaxy_type == "6U" else ttnn.FabricConfig.FABRIC_1D
)
return params