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

Enable AVX-512BW and AVX-512DQ target features in AVX-512 dispatch #629

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

robertknight
Copy link
Owner

  • AVX-512BW was tested for in Avx512Isa::new, but not enabled when dispatching. This resulted in intrinsics using these extensions not being inlined.

  • AVX-512DQ is used by _mm512_xor_ps, but this feature was not tested for and the target feature wasn't enabled, so this intrinsic did not get inlined.

According to 1 all CPUs that support the BW extension also support DQ, so this doesn't change which systems can use AVX-512.

Footnotes

  1. https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#AVX-512_CPU_compatibility_table

 - AVX-512BW was tested for in `Avx512Isa::new`, but not enabled when
   dispatching. This resulted in intrinsics using these extensions not
   being inlined.

 - AVX-512DQ is used by `_mm512_xor_ps`, but this feature was not tested
   for and the target feature wasn't enabled, so this intrinsic did not get
   inlined.

According to [^1] all CPUs that support the BW extension also support DQ, so
this doesn't change which systems can use AVX-512.

[^1]: https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#AVX-512_CPU_compatibility_table
@robertknight robertknight merged commit 404fba1 into main Mar 20, 2025
2 checks passed
@robertknight robertknight deleted the avx512dq branch March 20, 2025 07:23
@robertknight robertknight mentioned this pull request Mar 20, 2025
4 tasks
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.

None yet

1 participant