Skip to content
This repository was archived by the owner on May 24, 2018. It is now read-only.

Build with as many cores as there are on the system.#183

Open
darrengarvey wants to merge 1 commit intodmlc:masterfrom
darrengarvey:master
Open

Build with as many cores as there are on the system.#183
darrengarvey wants to merge 1 commit intodmlc:masterfrom
darrengarvey:master

Conversation

@darrengarvey
Copy link

On unix-like systems where we can use /proc/cpuinfo to find the
number of cores, use all of them when building, rather than only
using 4.

Still default to 4 when we don't have /proc/cpuinfo. Apparently
you can use $(sysctl -a | grep machdep.cpu | grep thread_count)
on Mac, but I don't have one available to try.

On unix-like systems where we can use /proc/cpuinfo to find the
number of cores, use all of them when building, rather than only
using 4.

Still default to 4 when we don't have /proc/cpuinfo. Apparently
you can use $(sysctl -a | grep machdep.cpu | grep thread_count)
on Mac, but I don't have one available to try.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant