From 2ca27beeedc26f9cc4447cce4c915185278a7425 Mon Sep 17 00:00:00 2001
From: "Jean-Baptiste Keck Jean-Baptiste.Keck@imag.fr" <keckj@luke.u-ga.fr>
Date: Mon, 12 Feb 2018 16:38:19 +0100
Subject: [PATCH] hwinfo

---
 CMakeLists.txt                   | 1 +
 hysop/backend/hardware/hwinfo.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7520af3b3..b77c4826e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -139,6 +139,7 @@ find_python_module(sympy REQUIRED)
 find_python_module(psutil REQUIRED)
 find_python_module(cpuinfo REQUIRED)
 find_python_module(gmpy2 REQUIRED)
+find_python_module(editdistance REQUIRED)
 find_python_module(graph_tool REQUIRED)
 # --- OpenCL ---
 find_python_module(pyopencl REQUIRED)
diff --git a/hysop/backend/hardware/hwinfo.py b/hysop/backend/hardware/hwinfo.py
index a88e1f998..bb410bc59 100644
--- a/hysop/backend/hardware/hwinfo.py
+++ b/hysop/backend/hardware/hwinfo.py
@@ -172,7 +172,7 @@ class TopologyObject(object):
         for v in child:
             assert v.tag == 'latency'
             val = v.attrib['value']
-            pvalues.append(val)
+            values.append(val)
         
         assert len(values) == nbobjs*nbobjs
         self._attributes['distances'] = np.reshape(np.asarray(values, dtype=np.float32),(nbobjs,nbobjs,))
-- 
GitLab