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

Update GNU assembler bug detection #278

Merged
merged 3 commits into from
Sep 15, 2022
Merged

Update GNU assembler bug detection #278

merged 3 commits into from
Sep 15, 2022

Conversation

lgarrison
Copy link
Collaborator

The fix for the GNU assembler bug (#196, https://sourceware.org/bugzilla/show_bug.cgi?id=23465) has been backported (https://bugzilla.redhat.com/show_bug.cgi?id=1869401), so we shouldn't rely on version numbers to detect the presence of the bug. Instead, we should just assemble a micro-program (vmovaps 64(,%rax), %zmm0) and check that it produces the correct result.

This will re-enable Corrfunc AVX-512 on some platforms (notably, my desktop at work!).

@lgarrison lgarrison added this to the v2.5.0 milestone Aug 12, 2022
@lgarrison lgarrison modified the milestone: v2.5.0 Aug 26, 2022
@lgarrison lgarrison modified the milestone: v2.5.0 Sep 7, 2022
@lgarrison
Copy link
Collaborator Author

@manodeep This is also ready for review (and should be quick). The failure seems to be due to astropy bot not picking up the milestone.

@manodeep
Copy link
Owner

Yup - looks good. Checked on my AVX512 cluster with the old binutils and AVX512 got disabled, while with the new binutils AVX512 remained enabled.

@manodeep manodeep merged commit 618a9ad into master Sep 15, 2022
@manodeep manodeep deleted the update-gas-bug-test branch September 15, 2022 13:02
lgarrison added a commit that referenced this pull request Oct 7, 2022
* Attempt to enable Rmax comparable to half boxsize by removing (unnecessary?) duplicate cell checks

* Comment out unused var

* Add test implementing Manodeep's example

* Restore duplicate cell pair check, but only count a pair as a duplicate if the wrap value is identical.

* Add pragmas for CI (will revisit)

* Update GNU assembler bug detection (#278)

* Update GNU assembler bug detection

* Cosmetic enhancement to suppress spurious warnings during GAS bug test

* Fix test error code

* Add another test of large Rmax, comparing against brute-force

* Add const qualifiers

* Apply @manodeep's fix for large Rmax test against brute-force, and require nmesh>=2 to avoid duplicate cell pairs

* Make boxsize non-trivial in test. Remove extra print statement.

* Add comments on array broadcasting to test

* Changed variable name for clarity

Co-authored-by: Manodeep Sinha <manodeep@gmail.com>
manodeep added a commit that referenced this pull request Dec 7, 2022
* Implement non-cubic periodic box for theory.DD

* Use boxsize tuple when calling low-level python bindings

* Changelog

* pep8

* Fix gridlink for non-cubic

* Implement turning off periodicity per-dimension by specifying boxsize=-1 in that dimension

* Change binsize calculation to use particle extent, not periodic wrap

* Port per-dimension periodicity and boxsize to other modules

* Fix calling CPython modules

* Extend simple boxsize tests to other modules

* pep8

* Only apply minimum cell criterion in a dimension when the periodic wrap makes wrap-crossing pairs possible

* Assign particles to cell 0 when they are all in a plane

* Add warning when all particles fall in a plane

* Add comments and parens. More explicit particle positions in narrow extent test.

* WIP: enable larger Rmax (up to half the box size) (#277)

* Attempt to enable Rmax comparable to half boxsize by removing (unnecessary?) duplicate cell checks

* Comment out unused var

* Add test implementing Manodeep's example

* Restore duplicate cell pair check, but only count a pair as a duplicate if the wrap value is identical.

* Add pragmas for CI (will revisit)

* Update GNU assembler bug detection (#278)

* Update GNU assembler bug detection

* Cosmetic enhancement to suppress spurious warnings during GAS bug test

* Fix test error code

* Add another test of large Rmax, comparing against brute-force

* Add const qualifiers

* Apply @manodeep's fix for large Rmax test against brute-force, and require nmesh>=2 to avoid duplicate cell pairs

* Make boxsize non-trivial in test. Remove extra print statement.

* Add comments on array broadcasting to test

* Changed variable name for clarity

Co-authored-by: Manodeep Sinha <manodeep@gmail.com>

* Fix missing docstring escapes

* Add tests for anisotropic boxes against brute-force. Allow more boxsize arg types, and tests for those arg types. Remove old large Rmax test.

* Fix Rmax>L/2 for non-periodic. Greatly expand brute-force tests. Fix passing boxsize=None to the Python API.

Co-authored-by: Manodeep Sinha <manodeep@gmail.com>
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.

2 participants