mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
* fix blst build tag * fix fuzz build * remove buildkite specific bazelrc line * remove conflicting kafka gotag in CI * fix again Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
20 lines
315 B
Go
20 lines
315 B
Go
// +build linux,amd64 linux,arm64
|
|
// +build blst_enabled
|
|
|
|
package blst
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
blst "github.com/supranational/blst/bindings/go"
|
|
)
|
|
|
|
func init() {
|
|
// Reserve 1 core for general application work
|
|
maxProcs := runtime.GOMAXPROCS(0) - 1
|
|
if maxProcs <= 0 {
|
|
maxProcs = 1
|
|
}
|
|
blst.SetMaxProcs(maxProcs)
|
|
}
|