mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-09 20:28:07 +00:00
commit
867c2f2ea4
@ -205,8 +205,14 @@ def get_cpu_info():
|
||||
except:
|
||||
pass
|
||||
elif os_type == OSType.WINDOWS:
|
||||
# TODO
|
||||
raise NotImplementedError
|
||||
try:
|
||||
output = subprocess.check_output("wmic cpu get Name", shell=True).decode(
|
||||
"utf-8"
|
||||
)
|
||||
lines = output.splitlines()
|
||||
cpu_info = lines[2].split(":")[-1].strip()
|
||||
except:
|
||||
pass
|
||||
|
||||
return os_type, avx_type, cpu_info, distribution
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user