accelerated_gpu

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package accelerated_gpu provides examples on how to use gnark with GPU acceleration.

NB! This example requires a compatible GPU and acceleration library installed. See the github.com/consensys/gnark/backend/accelerated/icicle package documentation for details. The example can only be run when built with `icicle` build tag.

To setup:

export CGO_LDFLAGS="-L/usr/local/lib -licicle_device -lstdc++ -lm -Wl,-rpath=/usr/local/lib"
export ICICLE_BACKEND_INSTALL_DIR="/usr/local/lib/backend/"

To run:

go test -timeout 0m -tags debug,icicle -run ^Example$ github.com/consensys/gnark/examples/accelerated_gpu -short -v -count=1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL