From 96773c5d6d5c9dd9e99d0cbb25bc06c2bf78ee03 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 21 Jun 2018 13:03:17 +0300 Subject: [PATCH] Import numpy after pyopencl --- src/openclpow.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openclpow.py b/src/openclpow.py index 894a5b77..b0be542c 100644 --- a/src/openclpow.py +++ b/src/openclpow.py @@ -20,11 +20,12 @@ vendors = [] hash_dt = None try: - import numpy import pyopencl as cl -except: + import numpy +except ImportError: libAvailable = False + def initCL(): global ctx, queue, program, hash_dt, libAvailable if libAvailable is False: