The results after program are not correct where as when I compile the program with libraries provided by Apple it works fine on 10.7 but not 10.6(MAC 10.7 have modified lapack 3.2.1) and (MAC 10.6 have modified lapack 3.1.1)g++-4.2 main.cpp -o testProduct -framework accelerate -fopenmp

Now can any one explain if LAPACK 3.4 and its corresponding BLAS is thread safe what could be the problem??