8000 take advantage of multiple CPUs · surajsingh0/opencv-python@cf601a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf601a1

Browse files
committed
take advantage of multiple CPUs
1 parent 200f0da commit cf601a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ function bdist_wheel_cmd {
2020

2121
if [ -n "$IS_OSX" ]; then
2222
echo " > OSX environment "
23+
export MAKEFLAGS="-j$(sysctl -n hw.ncpu)"
2324
else
2425
echo " > Linux environment "
26+
export MAKEFLAGS="-j$(grep -E '^processor[[:space:]]*:' /proc/cpuinfo | wc -l)"
2527
fi
2628

2729
if [ -n "$IS_OSX" ]; then

0 commit comments

Comments
 (0)
0