Skip to content

Commit

Permalink
#0: Clean up args for advance_worker_global_page_interleaved.
Browse files Browse the repository at this point in the history
  • Loading branch information
avoraTT committed Sep 13, 2024
1 parent 8221124 commit 77b3fee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ FORCE_INLINE void read_wrapped_chunk_from_output_tensor(
/*
* num_pages - i: check if we are outside the number of pages remaining
* contig_pages_: check if we are outside the max number of contig pages we can read in a row in a bank
* contig_edge_of_tensor_slice: check if we are outside the edge of the tensor slice (in which case, we wrap around if aren't at the end)
* contig_edge_of_tensor_slice: check if we are outside the edge of the tensor slice (in which case, we wrap around if we aren't at the end)
*/
uint32_t flattened_offset_worker_slice = offset_worker_slice.x + (offset_worker_slice.y * tensor_slice_shape.x);
uint32_t contig_edge_of_tensor_slice = tensor_slice_shape.x - ((flattened_offset_worker_slice + offset_into_worker_slice) % tensor_slice_shape.x);
Expand All @@ -490,8 +490,8 @@ FORCE_INLINE void read_wrapped_chunk_from_output_tensor(
worker_slice_shape,
tensor_slice_shape,
tensor_shape,
last_page_of_worker,
contig_pages
contig_pages,
last_page_of_worker
);

#endif
Expand Down Expand Up @@ -558,8 +558,8 @@ FORCE_INLINE void write_wrapped_chunk(
worker_slice_shape,
tensor_slice_shape,
tensor_shape,
last_page_of_worker,
contig_pages
contig_pages,
last_page_of_worker
);
#endif
l1_read_addr += page_size * contig_pages;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ inline void advance_worker_global_page_interleaved (

coord_t const &tensor_shape, // full tensor shape

bool &last_page_of_worker,
const uint32_t stride=1
const uint32_t stride,
bool &last_page_of_worker
) {

uint32_t prev_offset_into_worker_slice = offset_into_worker_slice;
Expand Down

0 comments on commit 77b3fee

Please sign in to comment.