/solana-perf-libs

C and CUDA libraries to enhance Solana

Primary LanguageC++OtherNOASSERTION

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.so - ed25519 verify (used by leaders) and chacha (used by validators) cuda implementations

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