Is there a way to tell Bazel when building how many CPU cores it can use?
TL;DR
I build TensorFlow on a VMware Workstation and being a virtual machine I can adjust the number of processors and cores for the virtual machine.
In the process of building TensorFlow I found that using only one core works. When I give the Workstation four cores and build TensorFlow it eventually halts the system to the point I have to reboot.
If I wait a few hours (leave it alone overnight) it sometimes returns with the following error:
gcc: internal compiler error: Killed (program cc1plus)
While I can change the number of cores using the virtual machines configuration options I would prefer to do it without having to shut down and restart the virtual machine.
bazel test -c opt --local_resources 20000,1,0.25
I see significant load on my system. – Moniz