-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[ignore] refactor #3890
base: main
Are you sure you want to change the base?
[ignore] refactor #3890
Conversation
This pull request was exported from Phabricator. Differential Revision: D63406173 |
This pull request was exported from Phabricator. Differential Revision: D63406173 |
Summary: Pull Request resolved: facebookresearch#3890 Differential Revision: D63406173
0680ada
to
a705a9c
Compare
This pull request was exported from Phabricator. Differential Revision: D63406173 |
Summary: Pull Request resolved: facebookresearch#3890 Differential Revision: D63406173
a705a9c
to
dd86d34
Compare
This pull request was exported from Phabricator. Differential Revision: D63406173 |
Summary: Pull Request resolved: facebookresearch#3890 Differential Revision: D63406173
dd86d34
to
9afb589
Compare
faiss/utils/simdlib_neon.h
Outdated
@@ -972,6 +977,63 @@ struct simd8uint32 { | |||
return ~(*this == other); | |||
} | |||
|
|||
// shift must be known at compile time | |||
simd8uint32 operator<<(const int shift) const { | |||
switch (shift) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider using vshlq_u32()
faiss/utils/simdlib_neon.h
Outdated
@@ -1191,6 +1253,15 @@ struct simd8float32 { | |||
std::string tostring() const { | |||
return detail::simdlib::elements_to_string<float, 8u>("%g,", *this); | |||
} | |||
|
|||
float accumulate() const { | |||
float32x4_t sum_0 = vpaddq_f32(data.val[0], data.val[0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider using vaddvq_f32()
This pull request was exported from Phabricator. Differential Revision: D63406173 |
Summary: Pull Request resolved: facebookresearch#3890 Differential Revision: D63406173
9afb589
to
ac1bb02
Compare
This pull request was exported from Phabricator. Differential Revision: D63406173 |
Summary: Pull Request resolved: facebookresearch#3890 Differential Revision: D63406173
ac1bb02
to
02eca5f
Compare
This pull request was exported from Phabricator. Differential Revision: D63406173 |
Summary: Pull Request resolved: facebookresearch#3890 Differential Revision: D63406173
02eca5f
to
a0f938b
Compare
Summary: Pull Request resolved: facebookresearch#3890 Differential Revision: D63406173
This pull request was exported from Phabricator. Differential Revision: D63406173 |
a0f938b
to
06cc5df
Compare
Differential Revision: D63406173