Skip to content

Conversation

@ajpotts
Copy link
Contributor

@ajpotts ajpotts commented Nov 21, 2024

This fixes a bug in the unit tests that fail when the number of locales is 2. The reason is that a small random array will occasionally have a sorted dimension, causing is_locally_sorted(a, axis=axis) to have True values. The solution is to increase the array dimension, and also skip the test for a larger number of locales.

Closes #3912: failing unit test test_is_locally_sorted_multidim under gasnet nl==2

@ajpotts ajpotts force-pushed the 3912_failing_unit_test_test_is_locally_sorted_multidim_under_gasnet_nl==2 branch 3 times, most recently from 7f18962 to 09126b1 Compare November 21, 2024 19:44
@ajpotts ajpotts marked this pull request as ready for review November 21, 2024 19:44
@ajpotts ajpotts force-pushed the 3912_failing_unit_test_test_is_locally_sorted_multidim_under_gasnet_nl==2 branch 2 times, most recently from e01a742 to a18ff2d Compare November 21, 2024 20:13
@ajpotts ajpotts force-pushed the 3912_failing_unit_test_test_is_locally_sorted_multidim_under_gasnet_nl==2 branch 2 times, most recently from c72af7f to 0258cc5 Compare December 3, 2024 21:15
@ajpotts ajpotts force-pushed the 3912_failing_unit_test_test_is_locally_sorted_multidim_under_gasnet_nl==2 branch from 0258cc5 to 0960010 Compare December 3, 2024 21:16
Copy link
Contributor

@drculhane drculhane left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this.

@ajpotts ajpotts added this pull request to the merge queue Dec 5, 2024
Merged via the queue into Bears-R-Us:master with commit 586d106 Dec 5, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

failing unit test test_is_locally_sorted_multidim under gasnet nl==2

3 participants