Skip to content

Commit

Permalink
fix assert finally
Browse files Browse the repository at this point in the history
  • Loading branch information
broskoTT committed Dec 17, 2024
1 parent 29b905a commit 9a47a2f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion device/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,18 @@ void Cluster::configure_tlb(
tlb_config_map.insert({logical_device_id, {}});
map_core_to_tlb_per_chip.insert({logical_device_id, {}});
}
log_assert(tlb_config_map.find(tlb_index) != tlb_config_map.end(), "TLB index already configured {}", tlb_index);
log_debug(
LogSiliconDriver,
"Configuring TLB for chip: {} core: {} tlb_index: {} address: {} ordering: {}",
logical_device_id,
core.str(),
tlb_index,
address,
ordering);
log_assert(
tlb_config_map.at(logical_device_id).find(tlb_index) == tlb_config_map.at(logical_device_id).end(),
"TLB index already configured {}",
tlb_index);

TTDevice* tt_device = get_tt_device(logical_device_id);
tt_device->set_dynamic_tlb(tlb_index, core, address, harvested_coord_translation.at(logical_device_id), ordering);
Expand Down

0 comments on commit 9a47a2f

Please sign in to comment.