Skip to content

Commit

Permalink
fix(node_type): remove unnecessary pipes in shell
Browse files Browse the repository at this point in the history
Signed-off-by: Sunil Thaha <[email protected]>
  • Loading branch information
sthaha committed Sep 12, 2024
1 parent e2a8777 commit 6756025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kepler_model/train/profiler/node_type_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def discover_spec_values():
vendor = format_vendor(cpu_info["vendor_id_raw"])

cores = psutil.cpu_count(logical=True)
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)))
threads_per_core = max(1, cores // psutil.cpu_count(logical=False))
memory = psutil.virtual_memory().total
memory_gb = int(memory / GB)
Expand Down

0 comments on commit 6756025

Please sign in to comment.