Skip to content

Commit

Permalink
remove set_dynamic_tlb
Browse files Browse the repository at this point in the history
  • Loading branch information
broskoTT committed Oct 18, 2024
1 parent 161d152 commit 0a10253
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
17 changes: 0 additions & 17 deletions tt_metal/llrt/tlb_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,21 +208,4 @@ void configure_static_tlbs(tt::ARCH arch, chip_id_t mmio_device_id, const metal_
device_driver.setup_core_to_tlb_map(mmio_device_id, get_static_tlb_index);
}

std::unordered_map<std::string, std::int32_t> get_dynamic_tlb_config(tt::ARCH arch) {
std::unordered_map<std::string, std::int32_t> dynamic_tlb_config;
switch (arch) {
case tt::ARCH::GRAYSKULL:
dynamic_tlb_config["REG_TLB"] = tt::umd::grayskull::REG_TLB;
break;
case tt::ARCH::WORMHOLE_B0:
dynamic_tlb_config["REG_TLB"] = tt::umd::wormhole::REG_TLB;
break;
case tt::ARCH::BLACKHOLE:
dynamic_tlb_config["REG_TLB"] = tt::umd::blackhole::REG_TLB;
break;
default: TT_THROW("Configuring dynamic TLBs is not supported for {}", tt::get_string(arch));
}
return dynamic_tlb_config;
}

} // namespace ll_api
2 changes: 0 additions & 2 deletions tt_metal/llrt/tlb_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ namespace ll_api {

void configure_static_tlbs(tt::ARCH arch, chip_id_t mmio_device_id, const metal_SocDescriptor &sdesc, tt_device &device_driver);

std::unordered_map<std::string, std::int32_t> get_dynamic_tlb_config(tt::ARCH arch);

} // namespace ll_api
2 changes: 0 additions & 2 deletions tt_metal/llrt/tt_cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ void Cluster::open_driver(const bool &skip_driver_allocs) {
// Silicon driver will attempt to open this many hugepages as channels, and assert if workload uses more than
// available. Metal currently uses assigns 1 channel per device
uint32_t num_host_mem_ch_per_mmio_device = HOST_MEM_CHANNELS;
std::unordered_map<std::string, std::int32_t> dynamic_tlb_config = ll_api::get_dynamic_tlb_config(this->arch_);
// This will remove harvested rows from the soc descriptor
const bool perform_harvesting = true;
const bool clean_system_resources = true;
Expand All @@ -265,7 +264,6 @@ void Cluster::open_driver(const bool &skip_driver_allocs) {
this->cluster_desc_path_,
all_chips_set,
num_host_mem_ch_per_mmio_device,
dynamic_tlb_config,
skip_driver_allocs,
clean_system_resources,
perform_harvesting);
Expand Down

0 comments on commit 0a10253

Please sign in to comment.