Import numpy after pyopencl
This commit is contained in:
parent
e92a85e1c5
commit
96773c5d6d
|
@ -20,11 +20,12 @@ vendors = []
|
||||||
hash_dt = None
|
hash_dt = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import numpy
|
|
||||||
import pyopencl as cl
|
import pyopencl as cl
|
||||||
except:
|
import numpy
|
||||||
|
except ImportError:
|
||||||
libAvailable = False
|
libAvailable = False
|
||||||
|
|
||||||
|
|
||||||
def initCL():
|
def initCL():
|
||||||
global ctx, queue, program, hash_dt, libAvailable
|
global ctx, queue, program, hash_dt, libAvailable
|
||||||
if libAvailable is False:
|
if libAvailable is False:
|
||||||
|
|
Reference in New Issue
Block a user