We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2a8777 commit 6756025Copy full SHA for 6756025
src/kepler_model/train/profiler/node_type_index.py
@@ -77,7 +77,7 @@ def discover_spec_values():
77
vendor = format_vendor(cpu_info["vendor_id_raw"])
78
79
cores = psutil.cpu_count(logical=True)
80
- chips = max(1, int(subprocess.check_output('cat /proc/cpuinfo | grep "physical id" | sort -u | wc -l', shell=True)))
+ chips = max(1, int(subprocess.check_output('grep "physical id" /proc/cpuinfo | sort -u | wc -l', shell=True)))
81
threads_per_core = max(1, cores // psutil.cpu_count(logical=False))
82
memory = psutil.virtual_memory().total
83
memory_gb = int(memory / GB)
0 commit comments