-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Supranational brownfield PC2 <> Lotus-Miner #10983
Comments
This was fixed upstream by Supranation. With the latest version of https://github.com/supranational/supra_seal there is a You would run it as:
Building just the #!/bin/bash
# Copyright Supranational LLC
set -e
set -x
SECTOR_SIZE="-DSECTOR_SIZE_32GiB"
if [ "$1" == "512MiB" ]; then
SECTOR_SIZE="-DSECTOR_SIZE_512MiB"
fi
NVCC=${NVCC:-nvcc}
# Check for the default result directory
if [ ! -d "/tmp/supra_seal" ]; then
mkdir -p /tmp/supra_seal
fi
rm -fr obj
mkdir -p obj
rm -fr bin
mkdir -p bin
mkdir -p deps
if [ ! -d "deps/sppark" ]; then
git clone https://github.com/supranational/sppark.git deps/sppark
fi
if [ ! -d "deps/blst" ]; then
git clone https://github.com/supranational/blst.git deps/blst
(cd deps/blst
./build.sh -D__ADX__)
fi
# Generate .h files for the Poseidon constants
xxd -i poseidon/constants/constants_2 > obj/constants_2.h
xxd -i poseidon/constants/constants_4 > obj/constants_4.h
xxd -i poseidon/constants/constants_8 > obj/constants_8.h
xxd -i poseidon/constants/constants_11 > obj/constants_11.h
xxd -i poseidon/constants/constants_16 > obj/constants_16.h
xxd -i poseidon/constants/constants_24 > obj/constants_24.h
xxd -i poseidon/constants/constants_36 > obj/constants_36.h
# Standalone GPU pc2
$NVCC -std=c++17 $SECTOR_SIZE -DNO_SPDK -DSTREAMING_NODE_READER_FILES \
-g -Xcompiler -Wall -Xcompiler -Wextra -Xcompiler -Werror \
-Xcompiler -Wno-subobject-linkage -Xcompiler -Wno-unused-parameter \
-Xcompiler -march=native -O3 \
-x cu tools/pc2.cu -o bin/pc2 \
-Iposeidon -Ideps/sppark -Ideps/sppark/util -Ideps/blst/src -L deps/blst -lblst -lconfig++ |
|
Added estimate in the userstory here:
Added an item in the testing plan snapping a sealed sector with SupraSeal PC2 code. |
What's the work needed in lotus to enable this? Worth asking this question: who's the audience of this issue?
|
@rjan90 Amazing work on the testing breakdown! |
WIP tracking issue for implementing Supranational brownfield PC2 as a drop-in replacement for the current PC2 sealing proof in Lotus-Miner.
User story:
Acceptence criteria:
Techincal scope
Techincal breakdown:
Testing breakdown:
Tippy, Reiers will help out with the testing and documentation ^^
Benchmarks/estimated improvements with 32GiB CC-sectors:
Please note that these benchmarks was done with CC-sectors. When the Supranational brownfield PC2 proofs supports deal data that might lead to slower benchmarks, although this slowdown is estimated to be minimal.
The text was updated successfully, but these errors were encountered: