import numpy as np
from multiprocessing import Pool, Process

def test(x):
    arr = np.dot(x.T, x)
if __name__ == '__main__':
    x = np.random.random(size=(2000, 500))
test(x)
evaluations = [x for _ in range(5)]
p = Pool()
p.map_async(test, evaluations)
p.close()
p.join()
Multiprocessing with numpy makes Python quit unexpectedly on OSX