package
Version:
v0.21.0
Opens a new window with list of versions in this module.
Published: Aug 10, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package parallel provides shared parallel execution primitives used
throughout gnark-crypto, including generated code.
func Chunks(nbIterations int, maxCpus ...int) [][2]int
Chunks returns a slice of [2]int where each element is a (start, end) range to be processed by a worker,
exactly as Execute does.
func Execute(nbIterations int, work func(int, int), maxCpus ...int)
Execute process in parallel the work function
func ExecuteAligned(nbIterations, alignment int, work func(int, int), maxCpus ...int)
ExecuteAligned is like Execute but keeps chunk boundaries aligned to the
provided alignment, except for a possible tail on the last chunk.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.