You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is related to benchmarking. When benchmarking in Golang, one can set an additional parameter to specify the number of CPUs allowed to that program, with a flag -cpu=2,4,8. https://dev.to/mcaci/introduction-to-benchmarks-in-go-3cii
This parameter, interestingly, only affects runtime.GOMAXPROCS(0) but not runtime.numCPU(). Therefore, when one uses the flag above to limit the number of CPU cores when benchmarking, a number of functions in the codebase, such as FFT, will mispredict the number of CPUs available to it.
The text was updated successfully, but these errors were encountered:
This is related to benchmarking. When benchmarking in Golang, one can set an additional parameter to specify the number of CPUs allowed to that program, with a flag
-cpu=2,4,8
.https://dev.to/mcaci/introduction-to-benchmarks-in-go-3cii
This parameter, interestingly, only affects
runtime.GOMAXPROCS(0)
but notruntime.numCPU()
. Therefore, when one uses the flag above to limit the number of CPU cores when benchmarking, a number of functions in the codebase, such as FFT, will mispredict the number of CPUs available to it.The text was updated successfully, but these errors were encountered: