parallel

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package parallel provides shared parallel execution primitives used throughout gnark-crypto, including generated code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chunks

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

func Execute(nbIterations int, work func(int, int), maxCpus ...int)

Execute process in parallel the work function

func ExecuteAligned

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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