from numba import cudaimport numpy as np
@cuda.jit(debug=True)def cufftShift_2D_kernel(data, N): #adopting cuda shift code from: #GNU Lesser public license #// 2D Slice & 1D Line sLine = N sSlice = N * N #// Transformations Equations sEq1 = int((sSlice + sLine) / 2) sEq2 = int((sSlice - sLine) / 2) x, y = cuda.grid(2) #// Thread Index Converted into 1D Index index = (y * N) + x #T regTemp; #data[index]=0 if (x < N / 2): if (y < N / 2): #// First Quad temp =data[index] data[index] = data[index + sEq1] #// Third Quad data[index + sEq1] = temp else: if (y < N / 2): #// Second Quad temp=data[index] data[index] = data[index + sEq2]; data[index + sEq2] = temp
n=4array=np.ones([n,n])#,dtype=np.complex128)
cufftShift_2D_kernel(array,n)
LoweringError: Failed at nopython (nopython mode backend)
NRT required but not enabled
File "<ipython-input-7-78335da43e0e>", line 26
[1] During: lowering "data[index] = $94.8" at <ipython-input-7-78335da43e0e> (26)
Github issue 1118 indicates NRT is not enabled by default, but I don't see anything in the documentation (https://docs.anaconda.com/docs_oss/numba/developer/numba-runtime) saying how to enable it.
--
You received this message because you are subscribed to the Google Groups "Numba Public Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numba-users+unsubscribe@continuum.io.
To post to this group, send email to numba...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/numba-users/48947545-6549-49fd-8dac-504cdc93eb8f%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to numba-users...@continuum.io.