Skip to content

TristanDebrunner/solana-perf-libs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

C and CUDA libraries to enhance Solana

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Cuda 37.3%
  • Objective-C 32.1%
  • C 27.8%
  • Makefile 1.3%
  • Shell 1.2%
  • Dockerfile 0.2%
  • Rust 0.1%