Tested on 10.7 (Lion). Signed-off-by: Bernhard Walle <[email protected]> --- bin/ptxdist | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/bin/ptxdist b/bin/ptxdist
index 74a52ad..4edbac3 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -2093,6 +2093,8 @@ setup_config() {
if [ ${cpus} -eq 0 ]; then
cpus=1
fi
+ elif [ "$(uname -s)" = Darwin ] ; then
+ cpus=$(sysctl -n hw.ncpu)
else
cpus=1
fi
--
1.7.7.4
--
ptxdist mailing list
[email protected]
