Skip to content

Commit

Permalink
#0: Assert fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sminakov-tt committed Oct 23, 2024
1 parent 51b0755 commit 7c8380e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tt_metal/tt_metal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ void WriteToDeviceSharded(Buffer &buffer, const std::vector<uint32_t> &host_buff
buffer.size());

uint32_t page_size = buffer.page_size();
TT_ASSERT((buffer.size == 0 && page_size == 0) || buffer.size() % page_size == 0);
TT_ASSERT(page_size == 0 ? buffer.size() == 0 : buffer.size() % page_size == 0);

static constexpr uint32_t bytes_per_page_entry = sizeof(uint32_t);
TT_ASSERT(page_size % bytes_per_page_entry == 0);
Expand Down

0 comments on commit 7c8380e

Please sign in to comment.