How to make numba @jit use all cpu cores (parallelize numba @jit)
问题 I am using numbas @jit decorator for adding two numpy arrays in python. The performance is so high if I use @jit compared with python . However it is not utilizing all CPU cores even if I pass in @numba.jit(nopython = True, parallel = True, nogil = True) . Is there any way to to make use of all CPU cores with numba @jit . Here is my code: import time import numpy as np import numba SIZE = 2147483648 * 6 a = np.full(SIZE, 1, dtype = np.int32) b = np.full(SIZE, 1, dtype = np.int32) c = np