-
Notifications
You must be signed in to change notification settings - Fork 992
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
Grin binary release fails on CPU without avx2 support #2494
Comments
I believe AVX is present on core i3 or better (celerons and pentiums don't have it). |
I'm thinking we're seeing this: From what I gather, LLVM seems to have some polyfill for architectures that don't support AVX, but their use has seen a regression. It looks like it's been recently fixed in the LLVM repository: https://bugs.llvm.org/show_bug.cgi?id=37358 The fix is included in LLVM 7.0.1. I'm not 100% sure but perusing the Rust release notes it doesn't seem the fix has been included yet. |
I use docker run grin. |
Some search in google "Disable AVX in Rust (required for EC2) https://gist.github.com/jedisct1/8984243 https://amp.reddit.com/r/rust/comments/6ynm53/a_simple_tip_to_improve_rust_program_speed/ |
We have found out that this might be a problem in croaring crate, which is built natively.
|
This should be fixed in v3.1.1 and onwards. If it re-appears, please open a new issue for it and we will investigate |
Grin binary release fails silently, when an user runs it one more time it complains about corrupted storage. The real reason is unsupported CPU instruction (SIGILL), most likely avx/avx2 one.
More info #2334
I create this issue to focus on release process improvement, it seems valuable to have a build with AVX2 support which brings a nice speedup. At the same time it may be confusing for some users if we have 2 packages for each OS.
Here is what we build:
The text was updated successfully, but these errors were encountered: