Skip to content

Commit

Permalink
#0: test align
Browse files Browse the repository at this point in the history
  • Loading branch information
nhuang-tt committed Feb 19, 2025
1 parent 02fb212 commit cddd4bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tt_metal/api/tt-metalium/command_queue_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ class DispatchMemMap {
uint32_t prefetch_dispatch_unreserved_base =
device_cq_addrs_[tt::utils::underlying_type<CommandQueueDeviceAddrType>(
CommandQueueDeviceAddrType::UNRESERVED)];
cmddat_q_base_ = prefetch_dispatch_unreserved_base + round_size(settings.prefetch_q_size_, pcie_alignment);
scratch_db_base_ = cmddat_q_base_ + round_size(settings.prefetch_cmddat_q_size_, pcie_alignment);
cmddat_q_base_ = align(prefetch_dispatch_unreserved_base + settings.prefetch_q_size_, pcie_alignment);
scratch_db_base_ = align(cmddat_q_base_ + settings.prefetch_cmddat_q_size_, pcie_alignment);
dispatch_buffer_base_ = align(prefetch_dispatch_unreserved_base, 1 << DispatchSettings::DISPATCH_BUFFER_LOG_PAGE_SIZE);
dispatch_buffer_block_size_pages_ = settings.dispatch_pages_ / DispatchSettings::DISPATCH_BUFFER_SIZE_BLOCKS;
const uint32_t dispatch_cb_end = dispatch_buffer_base_ + settings.dispatch_size_;
Expand Down

0 comments on commit cddd4bc

Please sign in to comment.