Hi,
I am using windows 10.
the code below works fine until i try to use np.mod. Also, I cannot get any Numpy code to work inside guvectorize with 'cuda'. Nor can I get any Math code to work inside a guvectorize with 'cuda'. i know not every numpy command will work with numba but 'mod' should work.
below i am try to use np.mod - which should be supported in nopython mode according to docs.
@guvectorize(['void(float32[:,:,:],float32[:,:,:])'],'(m,n,p)->(m,n,p)', target='cuda')
def dtwDipTestGPU2(data,data2):
[n1,n2,n3]=data.shape
np.mod(10,3)
for i3 in range(0,n3):
for i2 in range(0,n2):
for i1 in range(0,n1):
data2[i1,i2,i3]=data[i1,i2,i3]*2
error:
numba.errors.UntypedAttributeError: Failed at nopython (nopython frontend)
Unknown attribute 'mod' of type Module(<module 'numpy' from 'C:\\Users\\jesse\\AppData\\Local\\Continuum\\Anaconda3\\envs\\python3_6_2\\lib\\site-packages\\numpy\\__init__.py'>)
any suggestions are appreciated
thanks
Jesse