mirror of
https://github.com/luxfi/corona.git
synced 2026-07-27 02:50:34 +00:00
The two build-tagged files (dkg2_gpu_default.go, dkg2_gpu_accel.go) implemented a goroutine fan-out, NOT a GPU dispatch. Real GPU NTT for the underlying ring math lives in luxfi/lattice/v7/gpu and is reached via the consensus engine accel pipeline. Collapse to a single file dkg2_parallel.go with no build tag. Default OFF (matching the prior non-gpu build); tests opt in via SetDKG2GPUForTest. The exported helper name SetDKG2GPUForTest is left as-is to avoid breaking existing test callers; the legacy `GPU` in the name is documented as a historical misnomer.
12 lines
489 B
Go
12 lines
489 B
Go
// Copyright (C) 2025-2026, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package dkg2
|
|
|
|
// dkg2GPUEnabled is the runtime toggle for the goroutine fan-out path of
|
|
// the Pedersen DKG hot loop. Default off; tests opt in via
|
|
// SetDKG2GPUForTest. This is not a GPU dispatch — real GPU NTT for the
|
|
// underlying ring math lives in luxfi/lattice/v7/gpu and is reached via
|
|
// the consensus engine accel pipeline.
|
|
func init() { dkg2GPUEnabled = false }
|