2017-04-13 2 views

Antwort

0
cores=$(grep -c ^processor /proc/cpuinfo) 
make -j${cores} 
+0

Danke für die Info:) – Kumar

1

Ihre Linux-Distribution mit dem Befehl kommen sollte nprocs oder zumindest nprocs sollte leicht installierbar sein. Wenn Sie wollen nprocs nicht erforderlich, diese Shell-Befehl geben Sie die Anzahl der Kerne in der Box (einschließlich Hyper-Threading sind): ls -d /sys/devices/system/cpu/cpu[0-9]*|wc -l

+0

Danke für die Info :) – Kumar