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 AVX512BW Fletcher code on AVX512-but-not-BW machines. #11938

Merged
merged 1 commit into from
Apr 26, 2021

Conversation

rdolbeau
Copy link
Contributor

Closes #11937

Signed-off-by: Romain Dolbeau romain@dolbeau.org

Motivation and Context

See #11937; the wrong simd code is run on x86-64 machine with AVX512F but not AVX512BW (i.e., only Knight Landings a.k.a. Xeon Phi).

Description

Introduce a specific valid function for avx512f+avx512bw (instead of checking only for avx512f).

How Has This Been Tested?

Original bug reported confirms it solves the issue.

Types of changes

  • [ X] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

  • [X ] My code follows the OpenZFS code style requirements.
  • I have updated the documentation accordingly.
  • [X ] I have read the contributing document.
  • I have added tests to cover my changes.
  • I have run the ZFS Test Suite with this change applied.
  • [X ] All commit messages are properly formatted and contain Signed-off-by.

Closes openzfs#11937

Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
@behlendorf behlendorf added the Status: Accepted Ready to integrate (reviewed, tested) label Apr 26, 2021
@behlendorf behlendorf merged commit 0375465 into openzfs:master Apr 26, 2021
@rdolbeau rdolbeau deleted the fletcher_avx512bw_fix branch April 27, 2021 06:22
ghost pushed a commit to truenas/zfs that referenced this pull request May 6, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes openzfs#11937
Closes openzfs#11938
ghost pushed a commit to truenas/zfs that referenced this pull request May 6, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes openzfs#11937
Closes openzfs#11938
ghost pushed a commit to truenas/zfs that referenced this pull request May 6, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes openzfs#11937
Closes openzfs#11938
ghost pushed a commit to truenas/zfs that referenced this pull request May 7, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes openzfs#11937
Closes openzfs#11938
ghost pushed a commit to truenas/zfs that referenced this pull request May 10, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes openzfs#11937
Closes openzfs#11938
ghost pushed a commit to truenas/zfs that referenced this pull request May 10, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes openzfs#11937
Closes openzfs#11938
ghost pushed a commit to truenas/zfs that referenced this pull request May 10, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes openzfs#11937
Closes openzfs#11938
behlendorf pushed a commit to behlendorf/zfs that referenced this pull request May 10, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes openzfs#11937
Closes openzfs#11938
ghost pushed a commit to truenas/zfs that referenced this pull request May 13, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes openzfs#11937
Closes openzfs#11938
ghost pushed a commit to truenas/zfs that referenced this pull request May 17, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes openzfs#11937
Closes openzfs#11938
behlendorf pushed a commit that referenced this pull request May 20, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes #11937
Closes #11938
sempervictus pushed a commit to sempervictus/zfs that referenced this pull request May 31, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes openzfs#11937
Closes openzfs#11938
tonyhutter pushed a commit that referenced this pull request Jun 23, 2021
Introduce a specific valid function for avx512f+avx512bw (instead 
of checking only for avx512f).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Romain Dolbeau <romain@dolbeau.org>
Closes #11937
Closes #11938
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenZFS 2.0.x and Xeon Phi incompatibility
3 participants