Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve RAM usage during unseal #56

Merged
merged 6 commits into from
Apr 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ anyhow = "1.0.26"
bellperson = { version = "0.13", default-features = false }
bincode = "1.1.2"
serde = "1.0.104"
filecoin-proofs-v1 = { package = "filecoin-proofs", version = "~6.1", default-features = false }
filecoin-hashers = { version = "~1.1", default-features = false, features = ["poseidon", "sha256"] }
filecoin-proofs-v1 = { package = "filecoin-proofs", version = "~7.0", default-features = false }
filecoin-hashers = { version = "~2.0", default-features = false, features = ["poseidon", "sha256"] }
fr32 = { version = "~0.2", default-features = false }
storage-proofs-core = { version = "~6.1", default-features = false }
storage-proofs-core = { version = "~7.0", default-features = false }

[features]
default = ["pairing", "gpu"]
pairing = ["filecoin-proofs-v1/pairing", "bellperson/pairing"]
blst = ["filecoin-proofs-v1/blst", "bellperson/blst"]
gpu = ["filecoin-proofs-v1/gpu", "filecoin-hashers/gpu", "storage-proofs-core/gpu", "bellperson/gpu", "fr32/gpu"]
gpu2 = ["filecoin-proofs-v1/gpu2", "filecoin-hashers/gpu2", "storage-proofs-core/gpu2", "bellperson/gpu", "fr32/gpu"]
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This library is meant to be the official public API into the proofs library.

## Default build options

The build options enabled by default are `pairing` and `gpu`. Alternatives that can be used for testing are `blst` and `gpu2`. The `pairing` and `blst` options specify which bls12-381 pairing library to use. The `gpu` and `gpu2` options specify between using `neptune`'s default GPU backend, or an opencl based implementation.
The build options enabled by default are `pairing` and `gpu`. An alternative backend that can be used is `blst`. The `pairing` and `blst` options specify which bls12-381 pairing library to use..

## Running the tests

Expand All @@ -18,16 +18,16 @@ Running the tests with the default features can be done like this:
cargo test --release --all
```

Running with the `blst` and `gpu2` features can be done like this:
Running with the `blst` and `gpu` features can be done like this:

```
cargo test --no-default-features --features blst,gpu2 --release --all
cargo test --no-default-features --features blst,gpu --release --all
```

Running with the `pairing` and `gpu2` features can be done like this:
Running with `pairing` and without the `gpu` feature can be done like this:

```
cargo test --no-default-features --features pairing,gpu2 --release --all
cargo test --no-default-features --features pairing --release --all
```

## License
Expand Down
Loading