I get almost linear speed-up now:
ilmarw@bagvapp:~/instant/tests$ export OMP_NUM_THREADS=1
ilmarw@bagvapp:~/instant/tests$ python test_omp.py
Thread 0
With instant and OpenMP 1.74 seconds process time
With instant and OpenMP 1.7381939888 seconds wall time
ilmarw@bagvapp:~/instant/tests$ export OMP_NUM_THREADS=2
ilmarw@bagvapp:~/instant/tests$ python test_omp.py
Thread 1
Thread 0
With instant and OpenMP 1.72 seconds process time
With instant and OpenMP 1.00032997131 seconds wall time
Look at the wall time.
I used Intrepid Ibex, as the bug with gcc in 4.2 (used in Hardy) with
linking in -lgomp has been resolved there.
ilmar