参考nproc is not a command on Mac
使用下面的来替代
# physical
sysctl -n hw.physicalcpu
# logical
sysctl -n hw.logicalcpu
添加下面的内容到.zshrc
# nproc
alias nproc="sysctl -n hw.logicalcpu"
可以安装coreutils
brew install coreutils
参考nproc is not a command on Mac
使用下面的来替代
# physical
sysctl -n hw.physicalcpu
# logical
sysctl -n hw.logicalcpu
添加下面的内容到.zshrc
# nproc
alias nproc="sysctl -n hw.logicalcpu"
coreutils
brew install coreutils
本文标题:macOS `nproc`
本文链接:https://www.haomeiwen.com/subject/mxusfhtx.html
网友评论