-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add erasure rust logic under feature flag
- Loading branch information
1 parent
d7670cd
commit f7f5aec
Showing
4 changed files
with
430 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
||
|
@@ -42,6 +43,7 @@ codecov = { repository = "solana-labs/solana", branch = "master", service = "git | |
unstable = [] | ||
ipv6 = [] | ||
cuda = [] | ||
erasure = [] | ||
|
||
[dependencies] | ||
rayon = "1.0.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} |
Oops, something went wrong.
f7f5aec
There was a problem hiding this comment.
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