spacemesh-cuda is a cuda library for plot acceleration for spacemesh. This library optimizes memory access, calculation parallelism, etc. Compared with the official program, the library improved by 86.6%.
GPU\Library | Official | spacemesh-cuda |
---|---|---|
RTX3080 | 3.2MB/s | 5.97MB/s |
# build libpost.so
git clone https://github.com/ZakuroLab/post-rs.git && cd post-rs/ffi
cargo build --release
cd ../../
# get postcli
wget https://github.com/spacemeshos/post/releases/download/v0.12.5/postcli-Linux.zip
unzip -d postcli ./postcli-Linux.zip
cd postcli && mv ../post-rs/target/release/libpost.so ./
mkdir postcli && cd postcli
wget https://github.com/ZakuroLab/spacemesh-cuda/releases/download/v0.0.1/libpost.so
wget https://github.com/ZakuroLab/spacemesh-cuda/releases/download/v0.0.1/postcli
We welcome all contributions to spacemesh-cuda
. Please refer to the license for the terms of contributions.