They are enabled if the hardware support the appropriated instructions.
Details
Details
- Reviewers
deadalnix jasonbcox - Group Reviewers
Restricted Project - Commits
- rSTAGINGcf1126971968: [CMAKE] Enable SSE4.1, SHA-NI and AVX2 for the crypto library
rABCcf1126971968: [CMAKE] Enable SSE4.1, SHA-NI and AVX2 for the crypto library
Edit src/bench/bench_bitcoin.cpp and replace the line:
SHA256AutoDetect();
With:
std::cout << SHA256AutoDetect() <<std::endl;
Then
cmake -GNinja .. ninja bitcoin-bench ./src/bench/bitcoin-bench -filter=SHA256
Check that the enabled features match your hardware capabilities by
looking at the CPU flags in /proc/cpuinfo.
Checked with all flags and without avx2.
Run the gitian builds.
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Not to reviewers: this diff introduces some new -Wcast-align warnings.
The reason they don't show up with autotools is simply that the flag is not enabled.