Hello,
Below snippet is throwing following error.
It is possible to assign values back in a loop but that won’t be most efficient.
Is there a way to “enable NRT”?
Thank you.
Exception: Failed in cuda mode pipeline (step: native lowering)
NRT required but not enabled
During: lowering “$48binary_subscr.10[$68build_tuple.22] = d2_array” at …
@cuda.jit
def fill_arrays(grouped_data, cuda_array_of_arrays):
_index = cuda.grid(1)
if _index < len(grouped_data): # grouped_data is a tuple of 2d CuPy arrays
d2_array = grouped_data[_index]
arr_rows = d2_array.shape[0]
cuda_array_of_arrays[_index][0: arr_rows, 0: d2_array.shape[1]] = d2_array