Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Add missing library search path to Makefile.
Browse files Browse the repository at this point in the history
Update README.
  • Loading branch information
svenski123 authored and sakridge committed May 4, 2020
1 parent 3c82b79 commit c7505ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ Copy libraries to the main Solana repo:
$ make DESTDIR=${SOLANA_ROOT:?}/target/perf-libs install
```

Build Solana with the performance features enabled:
Build Solana:
```bash
$ cd $SOLANA_ROOT
$ cargo build --release --features=cuda
$ 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.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ $V/poh_verify.o: $(POH_SRCS)
CL_CPU_GPU_OBJS=$(addprefix $V/,cl_init_platform.o cl_verify.o cl_gpu_ctx.o cl_sign.o cl_chacha.o cl_poh_verify.o)

$V/lib$(CL_LIB).so: $(CL_CPU_GPU_OBJS)
$(CXX) -shared $^ -lOpenCL -o $@
$(CXX) -shared $^ -L$(CUDA_DIR)/lib64 -lOpenCL -o $@

$V/cl_ecc_main.o: $(CL_ECC_DIR)/main.cpp $(ECC_DIR)/ed25519.h
@mkdir -p $(@D)
Expand Down

0 comments on commit c7505ea

Please sign in to comment.