Skip to content

Conversation

@LoserCheems
Copy link
Collaborator

Extends the parameter structure to support column-wise memory layout by adding stride fields for both ZOH states and active mask data.

Enables more flexible memory access patterns and improves compatibility with different tensor layouts.

Extends the parameter structure to support column-wise memory layout by adding stride fields for both ZOH states and active mask data.

Enables more flexible memory access patterns and improves compatibility with different tensor layouts.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds column-wise memory layout support by extending the ZOH_params struct with two new stride fields.

  • Introduce zoh_col_stride for ZOH state column spacing
  • Introduce active_mask_col_stride for active-mask column spacing
Comments suppressed due to low confidence (2)

csrc/src/flash.h:59

  • [nitpick] Consider adding or updating unit tests to cover the new column-stride behavior, verifying that both zoh_col_stride and active_mask_col_stride are correctly applied in memory layout routines.
    index_t zoh_col_stride;                     // Stride between columns of ZOH states

csrc/src/flash.h:59

  • The new fields zoh_col_stride and active_mask_col_stride must be initialized (e.g., in a constructor or a default initializer) to prevent uninitialized memory access. Ensure all code paths set these strides to correct values.
    index_t zoh_col_stride;                     // Stride between columns of ZOH states

@LoserCheems LoserCheems merged commit b498b4d into main Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants