From 9ab37dbb45c1179ee6b30dd8f7d872ec87a8b5c5 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 10 Aug 2018 19:48:18 +0200 Subject: [PATCH] Ensure CPU topology information is integers on all platforms On Windows it was a string, go figure. --- benchmark/foundation/system_info.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmark/foundation/system_info.py b/benchmark/foundation/system_info.py index 3d92a87..e294707 100644 --- a/benchmark/foundation/system_info.py +++ b/benchmark/foundation/system_info.py @@ -101,8 +101,8 @@ def gatherSystemInfo(ctx): cpu_info = cpuinfo.get_cpu_info() cpu_topology = _getCPUTopologyInformation() system_info['cpu_brand'] = cpu_info['brand'] - system_info["num_cpu_threads"] = cpu_topology['num_logical_threads'] - system_info["num_cpu_sockets"] = cpu_topology['num_sockets'] - system_info["num_cpu_cores"] = cpu_topology['num_physical_cores'] + system_info["num_cpu_threads"] = int(cpu_topology['num_logical_threads']) + system_info["num_cpu_sockets"] = int(cpu_topology['num_sockets']) + system_info["num_cpu_cores"] = int(cpu_topology['num_physical_cores']) system_info['devices'] = _getBlenderDeviceInfo(ctx) return system_info