2 ms·
> I have to export GOMAXPROCS=`nproc` in a wrapper script... if os.Getenv("GOMAXPROCS") == "" { runtime.GOMAXPROCS(runtime.NumCPU()) } Is the
by NateDad 11y ago
> I have to export GOMAXPROCS=`nproc` in a wrapper script...
if os.Getenv("GOMAXPROCS") == "" {
runtime.GOMAXPROCS(runtime.NumCPU())
}
Is the above not sufficient?