From 1f98897d21836b31ef078ceed7e2aa0aba6890c4 Mon Sep 17 00:00:00 2001 From: Jeremy Felder Date: Sun, 5 Nov 2023 13:17:30 +0200 Subject: [PATCH] Update readme for toggling on and off icicle acceleration --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 54c20d345f..e222cd5411 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,16 @@ instantiated with the following curve(s) To use GPUs, add the `icicle` buildtag to your build/run commands, e.g. `go run -tags=icicle main.go`. +You can then toggle on or off icicle acceleration by providing the `WithIcicleAcceleration` backend ProverOption: + +```go + // toggle on + proofIci, err := groth16.Prove(ccs, pk, secretWitness, backend.WithIcicleAcceleration()) + + // toggle off + proof, err := groth16.Prove(ccs, pk, secretWitness) +``` + For more information about prerequisites see the [Icicle repo](https://github.com/ingonyama-zk/icicle). ## Citing