|
From: | Jonathan Kulp |
Subject: | Re: DOCS: include a sample "Makefile"? |
Date: | Sun, 17 May 2009 10:30:41 -0500 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090409) |
Werner LEMBERG wrote:
[...] I'm wondring about a portable way to determine the number of cores/CPUs present to adjust job-count value.On Linux: CPU_CORES=`cat /proc/cpuinfo | grep -m1 "cpu cores" | sed s/".*: "//`
Nice! I'd never tried using both processors like that. The terminal output for individual jobs is lost, but it processes much faster.
Jon -- Jonathan Kulp http://www.jonathankulp.com
[Prev in Thread] | Current Thread | [Next in Thread] |