elegant num_cores

Derp-derpity derp derp derp
This commit is contained in:
Caffarius 2019-08-03 18:15:24 -04:00
父節點 3a69b7356c
當前提交 75dc279f43
共有 1 個文件被更改,包括 1 次插入1 次删除

2
smt.sh
查看文件

@ -12,7 +12,7 @@
# Try your best to control SMT on Ryzen CPUs (and maybe others?)
# Usage: ./smt.sh (enable|disable|status)
num_cores=`lscpu | grep "CPU(s):" | grep -v "," | grep -v "-" | cut -d: -f2 | awk '{print $1}'`
num_cores=`nproc --all`
num_procs=`nproc`
coreLoop() {