I have two arrays of size n1 X n2 and I want them to be added together in parallel. I have an openMP enabled build of Python, but when I set export OMP_NUM_THREADS=4 inside of my bash shell before execution, I don't see my code being multithreaded. Is it possible to perform arr = arr + tarr in a mulithreaded way?
#!/usr/bin/env python
import numpy as np
n1 = 20000
n2 = 20000
arr = np.random.random_sample((n1,n2))
for i in range(10):
tarr = np.random.random_sample((n1,n2))
arr = arr+tarr
numpyand/or its libraries (BLAS etc) built withopenMP?