From 7e27a622bea06c93bde453ef590794816ead93a3 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Keck <Jean-Baptiste.Keck@imag.fr> Date: Mon, 14 Oct 2019 02:09:44 +0200 Subject: [PATCH] fix matplotlib import --- hysop/backend/device/kernel_autotuner_statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hysop/backend/device/kernel_autotuner_statistics.py b/hysop/backend/device/kernel_autotuner_statistics.py index 37c0b292a..1f086e2b0 100644 --- a/hysop/backend/device/kernel_autotuner_statistics.py +++ b/hysop/backend/device/kernel_autotuner_statistics.py @@ -1,7 +1,6 @@ import sys import numpy as np -from matplotlib import pyplot as plt from hysop.tools.types import check_instance class AutotunedKernelStatistics(dict): @@ -56,6 +55,7 @@ class AutotunedKernelStatistics(dict): self.plot_histogram() def plot_histogram(self): + from matplotlib import pyplot as plt run_times = self.run_times.copy() for unit in ('ns', 'us', 'ms', 's'): if run_times.min() < 1e2: -- GitLab