Skip to content

Commit

Permalink
Build with snarkify gpu lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigatron committed Sep 10, 2024
1 parent a528103 commit 9136907
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 3 deletions.
133 changes: 132 additions & 1 deletion prover/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ edition = "2021"
ethers-signers = { git = "https://github.com/scroll-tech/ethers-rs.git", branch = "v2.0.7" }
halo2curves = { git = "https://github.com/scroll-tech/halo2curves", branch = "v0.1.0" }
[patch."https://github.com/privacy-scaling-explorations/halo2.git"]
halo2_proofs = { git = "https://github.com/scroll-tech/halo2.git", branch = "v1.1" }
halo2_proofs = { git = "https://github.com/snarkify/halo2-scroll.git", tag = "snarkify-v0.1.7" }
[patch."https://github.com/privacy-scaling-explorations/poseidon.git"]
poseidon = { git = "https://github.com/scroll-tech/poseidon.git", branch = "main" }
[patch."https://github.com/privacy-scaling-explorations/bls12_381"]
bls12_381 = { git = "https://github.com/scroll-tech/bls12_381", branch = "feat/impl_scalar_field" }

[patch."https://github.com/scroll-tech/halo2.git"]
halo2_proofs = { git = "https://github.com/snarkify/halo2-scroll.git", tag = "snarkify-v0.1.7" }

[dependencies]
anyhow = "1.0"
Expand Down
15 changes: 15 additions & 0 deletions prover/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# The build step is skipped, one should build on the host first
# Use the NVIDIA CUDA runtime image for the runtime stage
FROM nvidia/cuda:12.6.0-base-ubuntu22.04

WORKDIR /prover

# Copy the build artifact from the build stage
COPY target/release/prover prover
# Set environment variables
ENV LD_LIBRARY_PATH=/prover:/usr/local/cuda/lib64 \
SCROLL_PROVER_ASSETS_DIR=/prover/volume/assets_low,/prover/volume/assets_high \
RUST_MIN_STACK=100000000 \
CHAIN_ID=534352
# Set the entrypoint for the container
ENTRYPOINT ["./prover"]

0 comments on commit 9136907

Please sign in to comment.