Bump blst: perf + 32-bit platforms support + pure C fallback + drop Miracl fallback tests (#2152)
* bump BLST * Cached subgroup checks * Bump BLST - BLST now has pure C fallback for all arch (Miracl unneeded) * Drop testing Miracl fallback in Nimbus * Charting uncharted waters: 32-bit should imply -mno-adx
This commit is contained in:
parent
91741326cc
commit
2b3b219c77
|
@ -115,7 +115,7 @@ jobs:
|
||||||
|
|
||||||
# libminiupnp / natpmp
|
# libminiupnp / natpmp
|
||||||
if [[ '${{ runner.os }}' == 'Linux' && '${{ matrix.target.cpu }}' == 'i386' ]]; then
|
if [[ '${{ runner.os }}' == 'Linux' && '${{ matrix.target.cpu }}' == 'i386' ]]; then
|
||||||
export CFLAGS="${CFLAGS} -m32"
|
export CFLAGS="${CFLAGS} -m32 -mno-adx"
|
||||||
echo "::set-env name=CFLAGS::$CFLAGS"
|
echo "::set-env name=CFLAGS::$CFLAGS"
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
|
@ -131,11 +131,11 @@ jobs:
|
||||||
mkdir -p external/bin
|
mkdir -p external/bin
|
||||||
cat << EOF > external/bin/gcc
|
cat << EOF > external/bin/gcc
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
exec $(which gcc) -m32 "\$@"
|
exec $(which gcc) -m32 -mno-adx "\$@"
|
||||||
EOF
|
EOF
|
||||||
cat << EOF > external/bin/g++
|
cat << EOF > external/bin/g++
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
exec $(which g++) -m32 "\$@"
|
exec $(which g++) -m32 -mno-adx "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod 755 external/bin/gcc external/bin/g++
|
chmod 755 external/bin/gcc external/bin/g++
|
||||||
echo '::add-path::${{ github.workspace }}/external/bin'
|
echo '::add-path::${{ github.workspace }}/external/bin'
|
||||||
|
|
|
@ -80,13 +80,15 @@ task test, "Run all tests":
|
||||||
# TODO `test_keystore` is extracted from the rest of the tests because it uses conflicting BLST headers
|
# TODO `test_keystore` is extracted from the rest of the tests because it uses conflicting BLST headers
|
||||||
buildAndRunBinary "test_keystore", "tests/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:chronicles_sinks="json[file]""""
|
buildAndRunBinary "test_keystore", "tests/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:chronicles_sinks="json[file]""""
|
||||||
|
|
||||||
# Check Miracl/Milagro fallback on select tests
|
# As BLST has a pure C fallback as of Dec 2020 undergoing audit and formal verification
|
||||||
buildAndRunBinary "test_interop", "tests/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:BLS_FORCE_BACKEND=miracl -d:chronicles_sinks="json[file]""""
|
# we skip Miracl checks as they are costly in CI time.
|
||||||
buildAndRunBinary "test_process_attestation", "tests/spec_block_processing/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:BLS_FORCE_BACKEND=miracl -d:chronicles_sinks="json[file]""""
|
# # Check Miracl/Milagro fallback on select tests
|
||||||
buildAndRunBinary "test_process_deposits", "tests/spec_block_processing/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:BLS_FORCE_BACKEND=miracl -d:chronicles_sinks="json[file]""""
|
# buildAndRunBinary "test_interop", "tests/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:BLS_FORCE_BACKEND=miracl -d:chronicles_sinks="json[file]""""
|
||||||
buildAndRunBinary "all_fixtures_require_ssz", "tests/official/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:BLS_FORCE_BACKEND=miracl -d:chronicles_sinks="json[file]""""
|
# buildAndRunBinary "test_process_attestation", "tests/spec_block_processing/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:BLS_FORCE_BACKEND=miracl -d:chronicles_sinks="json[file]""""
|
||||||
buildAndRunBinary "test_attestation_pool", "tests/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:BLS_FORCE_BACKEND=miracl -d:chronicles_sinks="json[file]""""
|
# buildAndRunBinary "test_process_deposits", "tests/spec_block_processing/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:BLS_FORCE_BACKEND=miracl -d:chronicles_sinks="json[file]""""
|
||||||
buildAndRunBinary "test_block_pool", "tests/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:BLS_FORCE_BACKEND=miracl -d:chronicles_sinks="json[file]""""
|
# buildAndRunBinary "all_fixtures_require_ssz", "tests/official/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:BLS_FORCE_BACKEND=miracl -d:chronicles_sinks="json[file]""""
|
||||||
|
# buildAndRunBinary "test_attestation_pool", "tests/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:BLS_FORCE_BACKEND=miracl -d:chronicles_sinks="json[file]""""
|
||||||
|
# buildAndRunBinary "test_block_pool", "tests/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:BLS_FORCE_BACKEND=miracl -d:chronicles_sinks="json[file]""""
|
||||||
|
|
||||||
# State and block sims; getting to 4th epoch triggers consensus checks
|
# State and block sims; getting to 4th epoch triggers consensus checks
|
||||||
buildAndRunBinary "state_sim", "research/", "-d:const_preset=mainnet -d:chronicles_log_level=INFO", "--validators=3000 --slots=128"
|
buildAndRunBinary "state_sim", "research/", "-d:const_preset=mainnet -d:chronicles_log_level=INFO", "--validators=3000 --slots=128"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3878b9bf324fd895f07f2c3a07622fac7c939e21
|
Subproject commit b5a77f1d29f6b5f6d5bf16853eea63d75072d0be
|
Loading…
Reference in New Issue