Skip to content

ryleung-solana/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.so - ed25519 verify and poh verify cuda implementations
  • libcl-crypt.so - ed25519 verify and poh verify OpenCL implementations

Copy libraries to the main Solana repo:

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

Build Solana:

$ cd $SOLANA_ROOT
$ cargo build --release

The library is loaded at startup by solana_perf::perf_libs. See perf/src/perf_libs.rs in the main Solana repo for details.

About

C and CUDA libraries to enhance Solana

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 72.8%
  • Cuda 17.1%
  • C++ 7.3%
  • Makefile 1.5%
  • Shell 0.9%
  • Dockerfile 0.3%
  • Rust 0.1%