Skip to content

enable specifying a subset of SIMD levels that are implemented at dispatching time.#4952

Open
mdouze wants to merge 1 commit intofacebookresearch:mainfrom
mdouze:export-D96943554
Open

enable specifying a subset of SIMD levels that are implemented at dispatching time.#4952
mdouze wants to merge 1 commit intofacebookresearch:mainfrom
mdouze:export-D96943554

Conversation

@mdouze
Copy link
Copy Markdown
Contributor

@mdouze mdouze commented Mar 18, 2026

Summary:
So far the with_simd_level function would assume that all implementations are available for each function. This is not the case, and is effectively not the case when we enable AVX512_SPR.

This diff has a specialized with_selected_simd_levels that takes a bitmask of the available implementations as template parameter.

The previous with_simd_level remains, it assumes AVX2, NEON and AVX512 implementations are available.

Differential Revision: D96943554

…patching time.

Summary:
So far the `with_simd_level` function would assume that all  implementations are available for each function. This is not the case, and  is effectively not the case when we enable AVX512_SPR.

This diff has a specialized `with_selected_simd_levels` that takes a bitmask of the available implementations as template parameter.

The previous `with_simd_level` remains, it assumes AVX2, NEON and AVX512 implementations are available.

Differential Revision: D96943554
@meta-cla meta-cla bot added the CLA Signed label Mar 18, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Mar 18, 2026

@mdouze has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96943554.

mdouze added a commit to mdouze/faiss that referenced this pull request Mar 19, 2026
…dispatching time. (facebookresearch#4952)

Summary:
The link with the original diff D96943554 was lost for some reason, so reviving 

So far the with_simd_level function would assume that all  implementations are available for each function. This is not the case, and  is effectively not the case when we enable AVX512_SPR.
This diff has a specialized with_selected_simd_levels that takes a bitmask of the available implementations as template parameter.
The previous with_simd_level remains, it assumes AVX2, NEON and AVX512 implementations are available.

Differential Revision: D97247328
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants