Import numpy after pyopencl
This commit is contained in:
parent
e92a85e1c5
commit
96773c5d6d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user