Dear all
I am trying to build and run a multi-thread program using openMP
the program calls
zgelss and zgemm from multiple thread
I have compiled the LAPACK 3.4 and refBLAS
and as advised earlier by a fellow on this forum
viewtopic.php?f=12&t=3113
I compiled my program with following command
g++-4.2 main.cpp -o testProduct -L/Users/shubhamgupta/LAPACK/lapack-3.4.0/ -llapack3.4 -lrefblas -L/Users/shubhamgupta/opt/gcc4.2/lib -lgfortran -fopenmp
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??
thank you