From 8fba635b90bf2c2f6aba16bd6430853cd0e7b0b2 Mon Sep 17 00:00:00 2001 From: George Adams Date: Wed, 23 Nov 2016 06:36:52 -0500 Subject: [PATCH] update nvm.sh to detect number of threads on aix and not just number of processors --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 425dd137320..09f5ef37a11 100755 --- a/nvm.sh +++ b/nvm.sh @@ -1785,7 +1785,7 @@ nvm_get_make_jobs() { elif [ "_$NVM_OS" = "_sunos" ]; then NVM_CPU_CORES="$(psrinfo | wc -l)" elif [ "_$NVM_OS" = "_aix" ]; then - NVM_CPU_CORES="$(lsconf | command grep 'Number Of Processors:'| command awk '{print $4}')" + NVM_CPU_CORES="$(pmcycles -m | wc -l)" fi if ! nvm_is_natural_num "$NVM_CPU_CORES" ; then nvm_err 'Can not determine how many core(s) are available, running in single-threaded mode.'