Skip to content

Commit 871d8ae

Browse files
DrPeterVanNostranddignifiedquire
authored andcommitted
feat: use Halo2 compatible dependencies
1 parent 497b1af commit 871d8ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+465
-768
lines changed

.circleci/config.yml

Lines changed: 9 additions & 182 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ jobs:
100100
parameters:
101101
crate:
102102
type: string
103-
features:
104-
type: string
105-
default: ""
106103
steps:
107104
- checkout
108105
- attach_workspace:
@@ -116,7 +113,7 @@ jobs:
116113
ulimit -u 20000
117114
ulimit -n 20000
118115
cd << parameters.crate >>
119-
cargo test --release << parameters.features >> -- --ignored --nocapture
116+
cargo test --release -- --ignored --nocapture
120117
environment:
121118
RUST_TEST_THREADS: 1
122119
no_output_timeout: 30m
@@ -134,7 +131,7 @@ jobs:
134131
- restore_rustup_cache
135132
- restore_parameter_cache
136133
- run:
137-
name: Test with use_multicore_sdr pairing enabled
134+
name: Test with use_multicore_sdr
138135
command: |
139136
ulimit -n 20000
140137
ulimit -u 20000
@@ -148,18 +145,6 @@ jobs:
148145
RUST_TEST_THREADS: 1
149146
FIL_PROOFS_USE_MULTICORE_SDR: true
150147

151-
- run:
152-
name: Test with use_multicore_sdr and blst enabled
153-
command: |
154-
ulimit -n 20000
155-
ulimit -u 20000
156-
ulimit -n 20000
157-
cargo +<< pipeline.parameters.nightly-toolchain >> test --all --no-default-features --features gpu,blst --verbose --release lifecycle -- --ignored --nocapture
158-
no_output_timeout: 30m
159-
environment:
160-
RUST_TEST_THREADS: 1
161-
FIL_PROOFS_USE_MULTICORE_SDR: true
162-
163148
test_gpu_tree_building:
164149
executor: gpu
165150
environment: *setup-env
@@ -185,7 +170,7 @@ jobs:
185170
ulimit -n 20000
186171
ulimit -u 20000
187172
ulimit -n 20000
188-
cargo +<< pipeline.parameters.nightly-toolchain >> test --all --no-default-features --features gpu,blst --verbose --release lifecycle -- --ignored --nocapture
173+
cargo +<< pipeline.parameters.nightly-toolchain >> test --all --verbose --release lifecycle -- --ignored --nocapture
189174
no_output_timeout: 30m
190175
environment:
191176
RUST_TEST_THREADS: 1
@@ -195,27 +180,21 @@ jobs:
195180
test_no_gpu:
196181
executor: default
197182
environment: *setup-env
198-
parameters:
199-
features:
200-
type: string
201183
steps:
202184
- checkout
203185
- attach_workspace:
204186
at: "."
205187
- restore_rustup_cache
206188
- restore_parameter_cache
207189
- run:
208-
name: Test with no gpu (<< parameters.features >>)
190+
name: Test with no gpu
209191
command: |
210-
cargo +<< pipeline.parameters.nightly-toolchain >> test --all --verbose --no-default-features --features << parameters.features >>
192+
cargo +<< pipeline.parameters.nightly-toolchain >> test --all --verbose --no-default-features
211193
no_output_timeout: 30m
212194

213195
test_arm_no_gpu:
214196
executor: arm
215197
environment: *setup-env
216-
parameters:
217-
features:
218-
type: string
219198
steps:
220199
- checkout
221200
- attach_workspace:
@@ -237,60 +216,11 @@ jobs:
237216
sudo apt-get update -y
238217
sudo apt install -y libhwloc-dev
239218
- run:
240-
name: Test arm with no gpu (<< parameters.features >>)
219+
name: Test arm with no gpu
241220
command: |
242-
cargo +<< pipeline.parameters.nightly-toolchain >> -Zpackage-features test --release --all --verbose --no-default-features --features << parameters.features >>
221+
cargo +<< pipeline.parameters.nightly-toolchain >> -Zpackage-features test --release --all --verbose --no-default-features
243222
no_output_timeout: 90m
244223

245-
test_blst:
246-
executor: default
247-
environment: *setup-env
248-
parameters:
249-
crate:
250-
type: string
251-
features:
252-
type: string
253-
default: "gpu,blst"
254-
steps:
255-
- checkout
256-
- attach_workspace:
257-
at: "."
258-
- restore_rustup_cache
259-
- restore_parameter_cache
260-
- run:
261-
name: Test ignored with blst enabled (<< parameters.crate >>)
262-
command: |
263-
ulimit -n 20000
264-
ulimit -u 20000
265-
ulimit -n 20000
266-
RUST_LOG=trace cargo +<< pipeline.parameters.nightly-toolchain >> test --no-default-features --features << parameters.features >> --verbose --release --package << parameters.crate >> -- --nocapture
267-
no_output_timeout: 30m
268-
environment:
269-
RUST_TEST_THREADS: 1
270-
271-
test_blst_ignored:
272-
executor: default
273-
environment: *setup-env
274-
parameters:
275-
crate:
276-
type: string
277-
steps:
278-
- checkout
279-
- attach_workspace:
280-
at: "."
281-
- restore_rustup_cache
282-
- restore_parameter_cache
283-
284-
- run:
285-
name: Test with blst enabled (<< parameters.crate >>)
286-
command: |
287-
ulimit -n 20000
288-
ulimit -u 20000
289-
ulimit -n 20000
290-
cargo +<< pipeline.parameters.nightly-toolchain >> test --no-default-features --features gpu,blst --verbose --package << parameters.crate >> --release -- --ignored --nocapture
291-
no_output_timeout: 30m
292-
293-
294224
bench:
295225
executor: default
296226
environment: *setup-env
@@ -472,99 +402,34 @@ workflows:
472402
- cargo_fetch
473403
- ensure_groth_parameters_and_keys_linux
474404

475-
- test_blst:
476-
name: test_blst_filecoin_proofs
477-
crate: "filecoin-proofs"
478-
requires:
479-
- cargo_fetch
480-
- ensure_groth_parameters_and_keys_linux
481-
482-
- test_blst_ignored:
483-
name: test_blst_ignored_filecoin_proofs
484-
crate: "filecoin-proofs"
485-
requires:
486-
- cargo_fetch
487-
- ensure_groth_parameters_and_keys_linux
488-
489405
- test:
490406
name: test_filecoin_proofs
491407
crate: "filecoin-proofs"
492408
requires:
493409
- cargo_fetch
494410
- ensure_groth_parameters_and_keys_linux
495411

496-
- test_blst:
497-
name: test_blst_storage_proofs_core
498-
crate: "storage-proofs-core"
499-
requires:
500-
- cargo_fetch
501-
- ensure_groth_parameters_and_keys_linux
502-
503-
- test_blst_ignored:
504-
name: test_blst_ignored_storage_proofs_core
505-
crate: "storage-proofs-core"
506-
requires:
507-
- cargo_fetch
508-
- ensure_groth_parameters_and_keys_linux
509-
510412
- test:
511413
name: test_storage_proofs_core
512414
crate: "storage-proofs-core"
513415
requires:
514416
- cargo_fetch
515417
- ensure_groth_parameters_and_keys_linux
516418

517-
- test_blst:
518-
name: test_blst_storage_proofs_post
519-
crate: "storage-proofs-post"
520-
requires:
521-
- cargo_fetch
522-
- ensure_groth_parameters_and_keys_linux
523-
524-
- test_blst_ignored:
525-
name: test_blst_ignored_storage_proofs_post
526-
crate: "storage-proofs-post"
527-
requires:
528-
- cargo_fetch
529-
- ensure_groth_parameters_and_keys_linux
530-
531419
- test:
532420
name: test_storage_proofs_post
533421
crate: "storage-proofs-post"
534422
requires:
535423
- cargo_fetch
536424
- ensure_groth_parameters_and_keys_linux
537425

538-
539-
- test_blst:
540-
name: test_blst_storage_proofs_porep
541-
crate: "storage-proofs-porep"
542-
requires:
543-
- cargo_fetch
544-
- ensure_groth_parameters_and_keys_linux
545-
546-
- test_blst_ignored:
547-
name: test_blst_ignored_storage_proofs_porep
548-
crate: "storage-proofs-porep"
549-
requires:
550-
- cargo_fetch
551-
- ensure_groth_parameters_and_keys_linux
552-
553426
- test:
554427
name: test_storage_proofs_porep
555428
crate: "storage-proofs-porep"
556429
requires:
557430
- cargo_fetch
558431
- ensure_groth_parameters_and_keys_linux
559432

560-
561-
- test_blst:
562-
name: test_blst_fil_proofs_tooling
563-
crate: "fil-proofs-tooling"
564-
requires:
565-
- cargo_fetch
566-
- ensure_groth_parameters_and_keys_linux
567-
568433
- test:
569434
name: test_fil_proofs_tooling
570435
crate: "fil-proofs-tooling"
@@ -579,15 +444,6 @@ workflows:
579444
- cargo_fetch
580445
- ensure_groth_parameters_and_keys_linux
581446

582-
583-
- test_blst:
584-
name: test_blst_filecoin_hashers
585-
crate: "filecoin-hashers"
586-
features: "blst,gpu,poseidon,sha256,blake2s"
587-
requires:
588-
- cargo_fetch
589-
- ensure_groth_parameters_and_keys_linux
590-
591447
- test:
592448
name: test_filecoin_hashers
593449
crate: "filecoin-hashers"
@@ -596,13 +452,6 @@ workflows:
596452
- ensure_groth_parameters_and_keys_linux
597453

598454

599-
- test_blst:
600-
name: test_blst_fil_proofs_param
601-
crate: "fil-proofs-param"
602-
requires:
603-
- cargo_fetch
604-
- ensure_groth_parameters_and_keys_linux
605-
606455
- test:
607456
name: test_fil_proofs_param
608457
crate: "fil-proofs-param"
@@ -611,29 +460,13 @@ workflows:
611460
- ensure_groth_parameters_and_keys_linux
612461

613462
- test_no_gpu:
614-
name: test_no_gpu_pairing
615-
features: 'pairing'
616-
requires:
617-
- cargo_fetch
618-
- ensure_groth_parameters_and_keys_linux
619-
620-
- test_no_gpu:
621-
name: test_no_gpu_blst
622-
features: 'blst'
623-
requires:
624-
- cargo_fetch
625-
- ensure_groth_parameters_and_keys_linux
626-
627-
- test_arm_no_gpu:
628-
name: test_arm_no_gpu_pairing
629-
features: 'pairing'
463+
name: test_no_gpu
630464
requires:
631465
- cargo_fetch
632466
- ensure_groth_parameters_and_keys_linux
633467

634468
- test_arm_no_gpu:
635-
name: test_arm_no_gpu_blst
636-
features: 'blst'
469+
name: test_arm_no_gpu
637470
requires:
638471
- cargo_fetch
639472
- ensure_groth_parameters_and_keys_linux
@@ -649,9 +482,3 @@ workflows:
649482
crate: "fr32"
650483
requires:
651484
- cargo_fetch
652-
653-
- test_blst:
654-
name: test_blst_fr32
655-
crate: "fr32"
656-
requires:
657-
- cargo_fetch

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The `hwloc` dependency is optional and may be disabled. Disabling it will not a
6868
To disable `multicore sdr` so that `hwloc` is not required, you can build proofs like this:
6969

7070
```
71-
> cargo build --release --all --no-default-features --features pairing,gpu
71+
> cargo build --release --all --no-default-features --features gpu
7272
```
7373

7474
Note that the `multicore-sdr` feature is omitted from the specified feature list, which removes it from being used by default.

fil-proofs-param/Cargo.toml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ storage-proofs-post = { path = "../storage-proofs-post", version = "^9.0.0", def
1515
filecoin-hashers = { version = "^4.0.0", path = "../filecoin-hashers", default-features = false, features = ["poseidon", "sha256"] }
1616
filecoin-proofs = { version = "^9.0.0", path = "../filecoin-proofs", default-features = false }
1717
bitvec = "0.17"
18-
rand = "0.7"
18+
rand = "0.8"
1919
lazy_static = "1.2"
2020
memmap = "0.7"
2121
pbr = "1.0"
2222
byteorder = "1"
2323
itertools = "0.9"
2424
serde = { version = "1.0", features = ["rc", "derive"] }
2525
serde_json = "1.0"
26-
ff = { version = "0.3.1", package = "fff" }
26+
ff = "0.11.0"
2727
blake2b_simd = "0.5"
28-
bellperson = { version = "0.16", default-features = false }
28+
bellperson = { git = "https://github.com/filecoin-project/bellperson", branch = "master" }
2929
log = "0.4.7"
3030
fil_logger = "0.1"
3131
env_proxy = "0.4"
@@ -37,15 +37,15 @@ hex = "0.4.0"
3737
merkletree = "0.21.0"
3838
bincode = "1.1.2"
3939
anyhow = "1.0.23"
40-
rand_xorshift = "0.2.0"
40+
rand_xorshift = "0.3.0"
4141
sha2 = "0.9.1"
4242
typenum = "1.11.2"
4343
gperftools = { version = "0.2", optional = true }
4444
generic-array = "0.14.4"
4545
structopt = "0.3.12"
4646
humansize = "1.1.0"
4747
indicatif = "0.15.0"
48-
groupy = "0.4.1"
48+
group = "0.11.0"
4949
dialoguer = "0.8.0"
5050
clap = "2.33.3"
5151

@@ -62,11 +62,9 @@ failure = "0.1.7"
6262
tempfile = "3"
6363

6464
[features]
65-
default = ["gpu", "blst"]
65+
default = ["gpu"]
6666
cpu-profile = ["gperftools"]
6767
heap-profile = ["gperftools/heap"]
6868
simd = ["storage-proofs-core/simd"]
6969
asm = ["storage-proofs-core/asm"]
7070
gpu = ["storage-proofs-core/gpu", "storage-proofs-porep/gpu", "storage-proofs-post/gpu", "bellperson/gpu"]
71-
pairing = ["storage-proofs-core/pairing", "storage-proofs-porep/pairing", "storage-proofs-post/pairing", "bellperson/pairing"]
72-
blst = ["storage-proofs-core/blst", "storage-proofs-porep/blst", "storage-proofs-post/blst", "bellperson/blst"]

0 commit comments

Comments
 (0)