Skip to content

Commit

Permalink
#0: fix CCL nightly and frequent test reqression suites (#13349)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfjchu authored Oct 1, 2024
1 parent db33f97 commit 9aa4c23
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,13 @@ def pcie_mesh_device(request, silicon_arch_name, silicon_arch_wormhole_b0, devic
except (ValueError, AttributeError):
num_pcie_devices_requested = len(device_ids)

if num_pcie_devices_requested != 4:
pytest.skip("Only 4 PCIe devices are supported for testing")

request.node.pci_ids = device_ids[:num_pcie_devices_requested]

mesh_device = ttnn.open_mesh_device(
ttnn.MeshShape(1, num_pcie_devices_requested),
dispatch_core_type=get_dispatch_core_type(),
**device_params,
physical_device_ids=device_ids[:num_pcie_devices_requested],
ttnn.MeshShape(2, 2), dispatch_core_type=get_dispatch_core_type(), **device_params, offset=(0, 1)
)

logger.debug(f"multidevice with {mesh_device.get_num_devices()} devices is created")
Expand Down Expand Up @@ -278,6 +278,7 @@ def t3k_mesh_device(request, silicon_arch_name, silicon_arch_wormhole_b0, device
if ttnn.get_num_devices() < 8:
pytest.skip()

request.node.pci_ids = ttnn.get_pcie_device_ids()
mesh_device = ttnn.open_mesh_device(
ttnn.MeshShape(2, 4),
dispatch_core_type=get_dispatch_core_type(),
Expand Down

0 comments on commit 9aa4c23

Please sign in to comment.