-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi cant get amount cores #1115
Comments
Presumably Can you provide the output of |
nvm debug
nvm_get_os sysctl -n hw.ncpu cat /proc/cpuinfo |
@cronicryo Thanks!! Very helpful. @PeterDaveHello it looks like in addition to grepping for "core id", we should count the number of "processor:" lines? |
…o, fall back to counting “processor” lines. Fixes nvm-sh#1115.
hmmm ... I'll take a look at my Raspberry Pi. |
Yeah, I don't have - NVM_CPU_THREADS="$(grep -c 'core id' /proc/cpuinfo)"
+ NVM_CPU_THREADS="$(command grep -c -E '^processor.+: [0-9]+' /proc/cpuinfo)" This also works on the other platforms. Tested on the latest Debian/Ubuntu/Linuxmint/ArchLinux. |
ok, sounds good thanks, i'll use that instead |
nvm -s version
throws a message saying that it cant determine the amount of cores for make
The text was updated successfully, but these errors were encountered: