so if I set parallel = True the program would parallelize without releasing the gil but if I do nogil=True the program would release the gil too and there can be error if concurrently object reference count decreases
this this line any correct?
import numba @numba.vectorize("float32(float32, float32)", parallel=True) def foo(nu, T): v = 45/T return nu *v import numpy as np from time import time a = np.arange(1, 100000, 1) t0 = time() foo(a, 78) print(time() - t0) Exception has occurred: KeyError "<class 'numba.npyufunc.ufuncbuilder.UFuncTargetOptions'> does not support option: 'parallel'" File "C:\Users\Dell\Desktop\numba temp\temp1.py", line 4, in <module> def foo(nu, T):
target='parallel'in the case of a
Exception has occurred: TypeError ufunc 'foo' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'' File "C:\Users\Dell\Desktop\numba temp\temp1.py", line 13, in <module> foo(a, 78)