MCPcopy Create free account
hub / github.com/pydata/numexpr / CopyNewFields

Function CopyNewFields

numexpr3/cpuinfo.py:1820–1832  ·  view source on GitHub ↗
(info, new_info)

Source from the content-addressed store, hash-verified

1818 return {}
1819
1820def CopyNewFields(info, new_info):
1821 keys = [
1822 'vendor_id', 'hardware', 'brand', 'hz_advertised', 'hz_actual',
1823 'hz_advertised_raw', 'hz_actual_raw', 'arch', 'bits', 'count',
1824 'raw_arch_string', 'l2_cache_size', 'l2_cache_line_size',
1825 'l2_cache_associativity', 'stepping', 'model', 'family',
1826 'processor_type', 'extended_model', 'extended_family', 'flags',
1827 'l3_cache_size', 'l1_data_cache_size', 'l1_instruction_cache_size'
1828 ]
1829
1830 for key in keys:
1831 if new_info.get(key, None) and not info.get(key, None):
1832 info[key] = new_info[key]
1833
1834def get_cpu_info():
1835 '''

Callers 1

get_cpu_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…