Browse Source

[Fix] `nvm install -s`: `aix`: detect number of threads on aix and not just number of processors

George Adams 8 years ago committed by Jordan Harband
parent
commit
a7648ebd9f
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
  1. 2
      nvm.sh

2
nvm.sh

@ -1785,7 +1785,7 @@ nvm_get_make_jobs() { @@ -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.'

Loading…
Cancel
Save