Skip to content

Commit 6756025

Browse files
author
Sunil Thaha
committed
fix(node_type): remove unnecessary pipes in shell
Signed-off-by: Sunil Thaha <[email protected]>
1 parent e2a8777 commit 6756025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kepler_model/train/profiler/node_type_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def discover_spec_values():
7777
vendor = format_vendor(cpu_info["vendor_id_raw"])
7878

7979
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)))
80+
chips = max(1, int(subprocess.check_output('grep "physical id" /proc/cpuinfo | sort -u | wc -l', shell=True)))
8181
threads_per_core = max(1, cores // psutil.cpu_count(logical=False))
8282
memory = psutil.virtual_memory().total
8383
memory_gb = int(memory / GB)

0 commit comments

Comments
 (0)