mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-11 05:02:15 +00:00
commit
867c2f2ea4
@ -205,8 +205,14 @@ def get_cpu_info():
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
elif os_type == OSType.WINDOWS:
|
elif os_type == OSType.WINDOWS:
|
||||||
# TODO
|
try:
|
||||||
raise NotImplementedError
|
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
|
return os_type, avx_type, cpu_info, distribution
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user