-
Notifications
You must be signed in to change notification settings - Fork 111
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
Bug: Rust build does not use simsimd (index.hardware_acceleration()
reports serial
)
#421
Comments
Hi @jrcavani! That is definitely a bug. |
The macro that got overwritten was originally specified to be
But it was redefined to be 1
Again, I haven't looked closely enough to know which one was an env var, and which one was a compile time constant, and how they interact between Here is the
|
Describe the bug
I am getting
serial
as the acceleration.If I installed in Python through pip, it's good:
I've been able to find the relevant build code paths:
This is the line that prints
serial
:usearch/include/usearch/index_plugins.hpp
Line 1492 in 5ea48c8
This is the line that decides including an env var
USEARCH_USE_SIMSIMD
inbuild.rs
whensimsimd
feature is turned on:usearch/build.rs
Line 28 in 5ea48c8
I was able to ensure the build script runs that code block (by writing some log file to disk in
build.rs
), but I am not seeing any change to the callindex.hardware_acceleration()
.I tried to built
usearch
manually:Does this mean something?
Steps to reproduce
This is the feature list in
Cargo.toml
:This is the source code for the test:
I am getting serial as the acceleration. Is this right? This applies to
f32
,f16
andi8
.Expected behavior
SIMD acceleration is expected.
USearch version
2.12.0
Operating System
Ubuntu 22.04
Hardware architecture
x86
Which interface are you using?
Other bindings
Contact Details
No response
Are you open to being tagged as a contributor?
.git
history as a contributorIs there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: