Skip to content

Commit

Permalink
precommit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
broskoTT committed Feb 25, 2025
1 parent e1b2d3a commit 738a5c7
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions device/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,7 @@ void Cluster::create_device(
}

void Cluster::construct_cluster(
const uint32_t& num_host_mem_ch_per_mmio_device,
const bool create_mock_chips,
const bool clean_system_resources) {
const uint32_t& num_host_mem_ch_per_mmio_device, const bool create_mock_chips, const bool clean_system_resources) {
if (!create_mock_chips) {
auto available_device_ids = detect_available_device_ids();
log_info(LogSiliconDriver, "Detected PCI devices: {}", available_device_ids);
Expand Down Expand Up @@ -448,10 +446,7 @@ Cluster::Cluster(
// TODO: work on removing this member altogether. Currently assumes all have the same arch.
arch_name = chips_.begin()->second->get_soc_descriptor().arch;

construct_cluster(
num_host_mem_ch_per_mmio_device,
create_mock_chips,
clean_system_resources);
construct_cluster(num_host_mem_ch_per_mmio_device, create_mock_chips, clean_system_resources);
}

Cluster::Cluster(
Expand All @@ -477,10 +472,7 @@ Cluster::Cluster(
// TODO: work on removing this member altogether. Currently assumes all have the same arch.
arch_name = chips_.begin()->second->get_soc_descriptor().arch;

construct_cluster(
num_host_mem_ch_per_mmio_device,
create_mock_chips,
clean_system_resources);
construct_cluster(num_host_mem_ch_per_mmio_device, create_mock_chips, clean_system_resources);
}

Cluster::Cluster(
Expand Down Expand Up @@ -518,10 +510,7 @@ Cluster::Cluster(
// TODO: work on removing this member altogether. Currently assumes all have the same arch.
arch_name = chips_.begin()->second->get_soc_descriptor().arch;

construct_cluster(
num_host_mem_ch_per_mmio_device,
create_mock_chips,
clean_system_resources);
construct_cluster(num_host_mem_ch_per_mmio_device, create_mock_chips, clean_system_resources);
}

Cluster::Cluster(
Expand All @@ -543,10 +532,7 @@ Cluster::Cluster(
// TODO: work on removing this member altogether. Currently assumes all have the same arch.
arch_name = chips_.begin()->second->get_soc_descriptor().arch;

construct_cluster(
num_host_mem_ch_per_mmio_device,
create_mock_chips,
clean_system_resources);
construct_cluster(num_host_mem_ch_per_mmio_device, create_mock_chips, clean_system_resources);
}

void Cluster::configure_active_ethernet_cores_for_mmio_device(
Expand Down

0 comments on commit 738a5c7

Please sign in to comment.