This works on my MacBook Pro
$ getconf _NPROCESSORS_ONLN
8
The macOS centric way is this:
$ sysctl -n hw.logicalcpu
8
Thanks,
Andrew FIsh
> On Mar 23, 2020, at 5:38 AM, Laszlo Ersek wrote:
>
> On 03/22/20 00:03, Rebecca Cran wrote:
>> Thank you. I think we probably do want to detect the
Thanks
I opened a bug to get this tracked.
https://bugzilla.tianocore.org/show_bug.cgi?id=2640
In that bug i link to a commit which does the above using python. It saves
about 20 seconds for each build on linux in Azure pipelines.
Thanks
Sean
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You
On 03/22/20 00:03, Rebecca Cran wrote:
> Thank you. I think we probably do want to detect the number of threads
> available: I'll see if I can work on that.
In a Linux environment, you can run "getconf _NPROCESSORS_ONLN".
In fact that's how I build the native BaseTools on my laptop:
$ .
Thank you. I think we probably do want to detect the number of threads
available: I'll see if I can work on that.
I'll plan to set up my own Azure self-hosted agent for doing more
extensive testing for FreeBSD and Bhyve.
--
Rebecca Cran
On 3/21/20 10:41 AM, Sean via Groups.Io wrote:
Rebecca - I think for any platform testing it would make more sense to use self
hosted agents. They could even be your own VM. QEMU and emulator might be the
two where we could explore using the DevOps VMs but I worry we will spend too
much time downloading and install dependencies since the