Skip to content

Commit

Permalink
UMD cleanup: delete all dead code, unused files, comments
Browse files Browse the repository at this point in the history
- Delete emulation + versim device
- Delete include device_api.h
- Delete rolled_write_to_device
- Delete rolled_write_to_non_mmio_device
- Delete write_epoch_cmd_to_device
- Delete noc_translation_en
- Delete dma_allocation_size
- Delete channel_address
- Delete get_pcie_speed
- Delete channels_are_directly_connected
- Delete chips_have_ethernet_connectivity
- Delete specify_enabled_devices
- Delete get_sequential_chip_id_set
- Delete get_dram_chan_map
- Delete get_worker_core
- Delete get_routing_core
- Delete get_pcie_core
- Delete is_dram_core
- Delete get_channel_of_ethernet_core
- Delete get_num_dram_blocks_per_channel
- Delete get_noc2host_offset
- Delete device_api.h
- Delete bind_thread_to_cpuset and bind_thread_cpuset
- Delete unbind_thread_from_cpuset and unbind_thread_cpuset
- Delete clear_state_and_cpuset_pins and clear_state
- Delete set_main_thread_id and _set_main_thread_id
- Delete get_num_cpu_cores_allocated_to_device
- Delete get_allowed_num_threads
- Delete store_thread_original_cpuset
- Delete allocate_cpu_set_for_thread
- Delete m_skip_singlify var
- Delete init_populate_physical_mmio_device_id_map, m_logical_to_physical_mmio_device_id_map and m_logical_to_physical_mmio_device_id_map
- Delete allocate_cpu_id_mutex
- Delete m_global_thread_ids_pinned
- Delete m_main_thread_id
- Delete m_stored_main_thread_id
- Delete m_global_thread_id_to_physical_device_id_map and m_global_thread_id_to_original_cpuset_map
- Delete DEFAULT_DRAM_SIZE_PER_CORE
- Delete ttkmd_init and ttkmd_uninit
- Delete get_link_width
- Delete get_link_speed
- Delete read_checking_enable
- Delete read_cfg and write_cfg
- Delete handle_dma_timeout
- Delete get_harvesting_masks_from_harvested_rows
- Delete check_dram_core_exists
- Delete get_logical_to_physical_mmio_device_id_map
- Delete get_physical_device_id_to_bus_id_map
- Delete useless comments
- Delete everything related to DMA
- Delete mutex name prefixes
- Delete init_pcie_iatus (setup for iATU P2P)
- Delete 'impl_device.hpp' and move `*_implementation` into respective folders
- Delete set_debug_level
- Delete write_to_non_mmio_device_send_epoch_cmd
- Delete tt_MutexType
- Delete epoch/erisc and some random vars
- Delete undefined test_pcie_tlb_setup & test_broadcast
- Delete TLB_OFFSETS
- Delete commented out code in cluster & simulation device
- Move versim and emulation to simulation/deprecated folder - Revert "Delete emulation + versim device"
  • Loading branch information
vtangTT committed Sep 13, 2024
1 parent 3db6c02 commit 378bba9
Show file tree
Hide file tree
Showing 37 changed files with 167 additions and 2,247 deletions.
8 changes: 3 additions & 5 deletions device/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@

set(UMD_DEVICE_SRCS
architecture_implementation.cpp
blackhole_implementation.cpp
cpuset_lib.cpp
grayskull_implementation.cpp
tlb.cpp
tt_cluster_descriptor.cpp
tt_device.cpp
tt_emulation_stub.cpp
tt_silicon_driver.cpp
tt_silicon_driver_common.cpp
tt_soc_descriptor.cpp
tt_versim_stub.cpp
wormhole_implementation.cpp
simulation/tt_simulation_device.cpp
simulation/tt_simulation_host.cpp
blackhole/blackhole_implementation.cpp
grayskull/grayskull_implementation.cpp
wormhole/wormhole_implementation.cpp
)
add_library(umd_device SHARED ${UMD_DEVICE_SRCS})
target_link_libraries(umd_device
Expand Down
6 changes: 3 additions & 3 deletions device/architecture_implementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

#include "device/architecture_implementation.h"

#include "device/blackhole_implementation.h"
#include "device/grayskull_implementation.h"
#include "device/wormhole_implementation.h"
#include "device/blackhole/blackhole_implementation.h"
#include "device/grayskull/grayskull_implementation.h"
#include "device/wormhole/wormhole_implementation.h"

namespace tt::umd {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "device/blackhole_implementation.h"
#include "blackhole_implementation.h"

namespace tt::umd {

Expand Down
File renamed without changes.
76 changes: 0 additions & 76 deletions device/blackhole/impl_device.hpp

This file was deleted.

Loading

0 comments on commit 378bba9

Please sign in to comment.