mbdevpl / system-query Goto Github PK
View Code? Open in Web Editor NEWComprehensive and concise system information querying tool.
License: Apache License 2.0
Comprehensive and concise system information querying tool.
License: Apache License 2.0
{
'host':'kwan-LIFEBOOK-U536',
'gpus':[
],
'swap':None,
'ram':{
'total':None
},
'os':'Linux-4.15.0-54-generic-x86_64-with-Ubuntu-16.04-xenial',
'hdds':{
},
'cpu':{
}
}
##Environment
I tested on python 3.5 and 3.6, both not working
output JSON says "cuda_version": 6.0,
but nvcc --versoin
is
Cuda compilation tools, release 8.0, V8.0.61
as currently there's none :)
on less common CPUs, such as Cavium ThunderX2
underlying pycpuinfo, though not reporting brand name, at least shows architecture and number of cores
but this information does not percolate into system_query
sample output of cpuinfo:
$ python3 -m cpuinfo
Python Version: 3.7.4.final.0 (64 bit)
Cpuinfo Version: (5, 0, 0)
Vendor ID:
Hardware Raw:
Brand:
Hz Advertised:
Hz Actual:
Hz Advertised Raw:
Hz Actual Raw:
Arch: ARM_8
Bits: 64
Count: 224
Raw Arch String: aarch64
L1 Data Cache Size: 32 KB
L1 Instruction Cache Size: 32 KB
L2 Cache Size: 256 KB
L2 Cache Line Size:
L2 Cache Associativity:
L3 Cache Size: 32768 KB
Stepping:
Model: 1
Family:
Processor Type:
Extended Model:
Extended Family:
Flags: aes, asimd, asimdrdm, atomics, cpuid, crc32, evtstrm, fp, pmull, sha1, sha2
output of sustem_query:
{'brand': None,
'cache': {1: 32768, 2: 262144, 3: 33554432},
'clock': None,
'clock_max': None,
'clock_min': None,
'logical_cores': None,
'physical_cores': None},
with, say, arch and cores I could have at least rendered this as "Unknown 224 core ARM_8 CPU " or something
getting this error on ubuntu 19.10 / Ryzen 3600
blackbird@sugi:~/Projects_heavy/performance/benchmarker [master|โ]$ python3 -m system_query
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/__main__.py", line 7, in <module>
main()
File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/main.py", line 41, in main
query_and_export(query_scope=args.scope, export_format=args.format, export_target=target)
File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/query.py", line 29, in query_and_export
info = query(query_scope, **kwargs)
File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/query.py", line 36, in query
info = query_all(**kwargs)
File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/all_info.py", line 20, in query_all
'cpu': query_cpu(**kwargs),
File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/cpu_info.py", line 54, in query_cpu
cache = _get_cache_sizes(cpu)
File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/cpu_info.py", line 44, in _get_cache_sizes
return {lvl: _get_cache_size(lvl, cpuinfo_data) for lvl in range(1, 4)}
File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/cpu_info.py", line 44, in <dictcomp>
return {lvl: _get_cache_size(lvl, cpuinfo_data) for lvl in range(1, 4)}
File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/cpu_info.py", line 40, in _get_cache_size
return int(raw_value) * 1024
ValueError: invalid literal for int() with base 10: '192 KiB'
'cache': {1: 32768, 2: 262144, 3: 31457280},
'clock': 2199.6667291666668,
'clock_max': 2200.0,
'clock_min': 2200.0,
'logical_cores': 48,
'physical_cores': 12},```
this system is 2 socket Xeon, each 12 cores and 24 threads
As of now, neither Travis travis-ci/travis-ci#5911 nor AppVeyor appveyor/ci#342 support CUDA by default.
I test GPU querying on my own machines, but I'd like to also test it online. Open to ideas.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.