Relative Content

Tag Archive for pythonparallel-processingnumba

Numba gives “Segmentation fault (core dumped)” with parallel=True flag set

import numpy as np from numba import njit @njit(parallel=True) def f(N): x = np.array([1.0], dtype=np.float64) for i in range(N): y = x * 1.0 return y print(f(10000)) Running this code, Python crashes and outputs “Segmentation fault (core dumped)” If “N” is less than 5000, this code can give the correct result “[1.]”. Also If I […]