Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 859 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 859 Bytes

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.