Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 946 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 946 Bytes

Build status

solana-perf-libs

CUDA, and more!

Building

After cloning this repo use the makefile in the root to build the tree with nvcc in your path:

$ export PATH=/usr/local/cuda/bin:$PATH
$ make -j$(nproc)

This should generate the libraries:

  • libcuda-crypt.a - ed25519 verify (used by leaders) and chacha (used by validators) cuda implementations
  • libcpu-crypt.a - CPU chacha encryption implementation, used by replicators (storage miners)
  • libJerasure.so, libgf_complete.so - CPU erasure code library used for coding blob send

Copy libraries to the main Solana repo:

$ make DESTDIR=${SOLANA_ROOT:?}/target/perf-libs install

Build Solana with the performance features enabled:

$ cd $SOLANA_ROOT
$ cargo build --release --features=cuda,chacha,erasure