mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 16:37:39 +00:00
c65c6ebc38
* invert go tag * fix rc * try again * Revert "try again" This reverts commit 70ff7658b7cbc43b903bac267f4d7c9833536f8b. * fix fuzz * Update shared/bls/blst/BUILD.bazel Co-authored-by: Victor Farazdagi <simple.square@gmail.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
20 lines
344 B
Go
20 lines
344 B
Go
// +build linux,amd64 linux,arm64 darwin,amd64 windows,amd64
|
|
// +build !blst_disabled
|
|
|
|
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)
|
|
}
|