Skip to content

Strided slices #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 12, 2025
Merged

Strided slices #158

merged 4 commits into from
May 12, 2025

Conversation

BrianMichell
Copy link
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
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
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
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