make -j 옵션 (cpu를 동시에 사용)

컴퓨터 2014. 9. 5. 15:52

# Build using maximum number of physical cores
n=`cat /proc/cpuinfo | grep "cpu cores" | uniq | awk '{print $NF}'`

 

make -j $n

 

참조:

http://particlephysicsandcode.com/2012/11/04/installing-open-mpi-1-6-3-ubuntu-12-04-fedora/