Skip to content
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

Fix range setup for anyv regions #211

Merged
merged 1 commit into from
May 2, 2024
Merged

Conversation

johnomotani
Copy link
Collaborator

We may sometimes call get_local_range() with a sub_block_rank bigger than the sub_block_size, in particular for the anyv 'serial region'. In this case immediately return 1:0 for the range, as this avoids a potential out-of-bounds array access when accessing n_points_for_proc.

Fixes #210.

May sometimes call get_local_range() with a `sub_block_rank` bigger than
the `sub_block_size`, in particular for the `anyv` 'serial region'. In
this case immediately return `1:0` for the range, as this avoids a
potential out-of-bounds array access when accessing `n_points_for_proc`.
@johnomotani johnomotani added the bug Something isn't working label May 1, 2024
@johnomotani johnomotani merged commit f168743 into master May 2, 2024
15 of 16 checks passed
@johnomotani johnomotani deleted the anyv-loop-setup-fix branch May 2, 2024 07:04
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.

Segmentation fault in anyv_region() shared memory setup
1 participant