Skip to content

Commit

Permalink
Add erasure rust logic under feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
aeyakovenko authored and sakridge committed Apr 19, 2018
1 parent d7670cd commit f7f5aec
Show file tree
Hide file tree
Showing 4 changed files with 430 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ documentation = "https://docs.rs/solana"
homepage = "http://loomprotocol.com/"
repository = "https://github.com/solana-labs/solana"
authors = [
"Anatoly Yakovenko <[email protected]>",
"Greg Fitzgerald <[email protected]>",
"Anatoly Yakovenko <[email protected]>",
"Greg Fitzgerald <[email protected]>",
"Stephen Akridge <[email protected]>",
]
license = "Apache-2.0"

Expand Down Expand Up @@ -42,6 +43,7 @@ codecov = { repository = "solana-labs/solana", branch = "master", service = "git
unstable = []
ipv6 = []
cuda = []
erasure = []

[dependencies]
rayon = "1.0.0"
Expand Down
5 changes: 4 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
use std::env;

fn main() {
println!("cargo:rustc-link-search=native=.");
if !env::var("CARGO_FEATURE_CUDA").is_err() {
println!("cargo:rustc-link-search=native=.");
println!("cargo:rustc-link-lib=static=cuda_verify_ed25519");
println!("cargo:rustc-link-search=native=/usr/local/cuda/lib64");
println!("cargo:rustc-link-lib=dylib=cudart");
println!("cargo:rustc-link-lib=dylib=cuda");
println!("cargo:rustc-link-lib=dylib=cudadevrt");
}
if !env::var("CARGO_FEATURE_ERASURE").is_err() {
println!("cargo:rustc-link-lib=dylib=Jerasure");
}
}
Loading

1 comment on commit f7f5aec

@garious
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git commit --amend --reset-author

Please sign in to comment.