GitHunt
BC

BCSharp/solana-perf-libs

C and CUDA libraries to enhance Solana

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.

Languages

C72.8%Cuda17.1%C++7.3%Makefile1.5%Shell0.9%Dockerfile0.3%Rust0.1%
Other
Created November 23, 2021
Updated November 23, 2021