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

Portable build that support cpus older than Intel Haswell #363

Open
ailisp opened this issue Dec 13, 2019 · 1 comment
Open

Portable build that support cpus older than Intel Haswell #363

ailisp opened this issue Dec 13, 2019 · 1 comment

Comments

@ailisp
Copy link

ailisp commented Dec 13, 2019

CPU older than Intel Haswell (e.g. sandy bridge and ivy bridge) doesn't have avx2. Currently rust-rocksdb doesn't provide an option to compile it without avx2. rocksdb itself has a PORTABLE option in cmake, so passing a PORTABLE flag to it will be make a portable build: https://github.com/facebook/rocksdb/blob/e3169e3ea8762d2f34880742106858a23c8dc8b7/CMakeLists.txt#L222

Reference: parity's fork has this: https://github.com/paritytech/rust-rocksdb/blob/6e099ebea51e5b5adb33405310504c8582649b34/rocksdb-sys/build.rs#L52

@vitvakatu
Copy link

Probably duplicates #327

shesek added a commit to Blockstream/electrs that referenced this issue Mar 18, 2020
shesek added a commit to Blockstream/electrs that referenced this issue Mar 18, 2020
SatoKentaNayoro pushed a commit to boolnetwork/mempool-electrs that referenced this issue Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants