Skip to content

Strided slices#158

Merged
markspec merged 4 commits intomainfrom
slice_stride
May 12, 2025
Merged

Strided slices#158
markspec merged 4 commits intomainfrom
slice_stride

Conversation

@BrianMichell
Copy link
Copy Markdown
Collaborator

Due to concerns about data integrity and API behavior, isel (and Variable/VariableData slice) were disallowed from having a stride other than 1.

This PR resolves that issue and validates proper behavior.

#100 laid the groundwork for ensuring both isel and sel behave as expected.

@BrianMichell BrianMichell added the Improvement Something could be better label Mar 5, 2025
@BrianMichell BrianMichell requested a review from blasscoc March 5, 2025 19:46
@markspec
Copy link
Copy Markdown
Collaborator

@BrianMichell, I fail to see any issues using isel with stride != 1. Can you explain in a bit more detail why you want to limit the functionality?

@BrianMichell
Copy link
Copy Markdown
Collaborator Author

This is removing that limitation that we imposed very early on. The concern was potentially mangling the written data and our access methods. This PR adds tests to ensure we don't inadvertently mangle with strided slices.

Copy link
Copy Markdown
Collaborator

@markspec markspec left a comment

Choose a reason for hiding this comment

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

LGTM

@markspec markspec merged commit a61699e into main May 12, 2025
6 checks passed
@markspec markspec deleted the slice_stride branch May 12, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Something could be better

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants