Repository navigation
avx2 branch for bool take kernel - #10385
Merged
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an AVX2 implementation for boolean take kernel. There are two options for implementation: with and without validity.
Without validity we don't need to check any bounds because we rely on scalar code already doing this (see minmax code).
With validity, we clamp the index to be in valid bounds, so there never will be an out of bounds read, and collect violations. A violation is when for a non-NULL index clamped index isn't equal to the original index. Then we panic if there are any violations, thus an invalid request always panics.
Change the scalar nullable code so it also operated on 8 packed values instead of querying validity bits individually.