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

Some changes to simdlib #2885

Closed
wants to merge 5 commits into from

Conversation

wx257osn2
Copy link
Contributor

  • Use elementwise operation and reduction once instead of across-vector comparing operation twice
  • Use already implemented supporting functions
  • Unify semantics of operator== as same as simd16uint16
  • Change is_same_as to accept any vector type as argument for simdlib_neon
    • is_same_as has supported any vector type on simdlib_avx2 and simdlib_emulated already
  • Remove unused function simd16uint16::is_same on simdlib_avx2
    • Is it typo of is_same_as ? Anyway it seems to be used unlikely

@wx257osn2
Copy link
Contributor Author

CondaError: Downloaded bytes did not match Content-Length

😕

@facebook-github-bot
Copy link
Contributor

@alexanderguzhva has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@alexanderguzhva merged this pull request in 9c88422.

Thejas-bhat pushed a commit to blevesearch/faiss that referenced this pull request Sep 27, 2023
Summary:
- Use elementwise operation and reduction once instead of across-vector comparing operation twice
- Use already implemented supporting functions
- Unify semantics of `operator==` as same as `simd16uint16`
    - `operator==` of `simd8uint32` and `simd8float32` had been implemented on facebookresearch#2568, but these has not same semantics as `simd16uint16` (which had been implemented in a long time ago). For getting the vector equality as `bool` , now we should use `is_same_as` member function.
- Change `is_same_as` to accept any vector type as argument for `simdlib_neon`
    - `is_same_as` has supported any vector type on `simdlib_avx2` and `simdlib_emulated` already
- Remove unused function `simd16uint16::is_same` on `simdlib_avx2`
    - Is it typo of `is_same_as` ? Anyway it seems to be used unlikely

Pull Request resolved: facebookresearch#2885

Reviewed By: mdouze

Differential Revision: D46330666

Pulled By: alexanderguzhva

fbshipit-source-id: 0ea14f8e9a8bda78f24a655219dffe3e07fc110f
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.

None yet

2 participants