MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get_build_cpus

Function get_build_cpus

tensorflow/lite/tools/pip_package/setup.py:62–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60# Check physical memory and if we are on a reasonable non small SOC machine
61# with more than 4GB, use all the CPUs, otherwisxe only 1.
62def get_build_cpus():
63 physical_bytes = os.sysconf('SC_PAGESIZE') * os.sysconf('SC_PHYS_PAGES')
64 if physical_bytes < (1<<30) * 4:
65 return 1
66 else:
67 return multiprocessing.cpu_count()
68
69
70def make_args(target='', quiet=True):

Callers 1

make_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected