-
Notifications
You must be signed in to change notification settings - Fork 74
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
aobench: cannot use sleef-sys
#118
Comments
Which platform are you on ? can you perform the cargo build with the
When using Note that we are not passing any target features to the C compiler. To do this we would have to upgrade the
I don't recall why macosx is not tested (there is a comment, but its not helpful...) - maybe an oversight. Building and linking C libraries is brittle, so if your system differs slightly, things might fail. |
IIRC the benchmarks results in the readme of |
What I wanted to do at some point is enable cross-language inlining for the |
@gnzlbg I did manage to get sleef to build, but I've discovered the bigger issue. With I had modified the benchmark to use I will work on solving #112 and #116 before continuing work on this benchmark. |
oh damn, I only tested the |
Performance profiling revealed the crate was spending 50% of its time inside
libm.so
, and I decided to try usingsleef
to see if it would help. Unfortunately, it seemed it wasn't working, and the crate was still usinglibm
's functions.The benchmark's README recommends building with
target-cpu=native
. However,sleef-sys
has a build file which checks for the presence of certaintarget-features
, and ignorestarget-cpu
.So I kept
target-cpu=native
, and also added-C target-feature=sse,sse2,ssse3,sse4.1,avx,avx2,fma
(all of my CPU's features, I think).But then it failed to build:
It seems the
cfg(all(target_feature = "sse2"))
inpacked_simd
'sCargo.toml
wasn't working. So I removed it and now it tried to buildlibsleef.so
:So what are the step-by-step instructions for using
sleef
with this crate?The text was updated successfully, but these errors were encountered: