Skip to content

pgarg66/solana-perf-libs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

  • C 65.0%
  • Cuda 11.6%
  • Objective-C 10.3%
  • HTML 8.5%
  • Shell 1.8%
  • M4 1.6%
  • Other 1.2%