heavyai / rbc

Remote Backend Compiler
https://rbc.readthedocs.io
BSD 3-Clause "New" or "Revised" License
30 stars 10 forks source link

Lowering error: NRT required but not enabled #221

Open pearu opened 3 years ago

pearu commented 3 years ago

The error is raised from a UDF definition such as

def foo(n):
    tmp = np.zeros(n)
    ...

Task: improve error message and if possible, give a hint for possible solutions. For instance, tmp = np.zeros(n) call is equivalent to

tmp = Array(n)
tmp.fill(0)
guilhermeleobas commented 3 years ago

If np.zeros is using the implementation from omnisci_backend, then it ought to work. Can you post a reproducible example?