SOme ground work to support Windows for benchmark farm

Mainly straightforward changes, the only tricky part: detect number of CPU
sockets. Didn't figure out yet how to do this on Windows.
This commit is contained in:
2017-08-28 15:05:04 +02:00
parent 4bed7a3f8a
commit 3c3c8cbaad
4 changed files with 17 additions and 2 deletions

View File

@@ -69,6 +69,9 @@ def getNumPhysicalCPUs_Linux():
def getNumPhysicalCPUs():
if sys.platform == 'linux':
return getNumPhysicalCPUs_Linux()
elif sys.platform == 'win32':
# TODO(sergey): Currently all WIndows machines here are single socket.
return 1
else:
raise Exception("Needs implementation")