
I wrote a C++ project using OpenMP, GCC and Boost. When I enable nested parallelism (omp_set_nested(1)), repeated runs of the same piece of code produce different results, which suggests that there is a race condition somewhere, but I do not see anything wrong with the logic of my code, so I decided to use Sun Studio's Thread Analyzer to analyze my code. This requires me to build my project with Sun's CC 5.2, which fails with the following warning message from Boost:
"/h/96/g4max/local/boost64/include/boost/numeric/ublas/detail/config.hpp", line 170: Error: #error Your compiler and/or configuration is unsupported by this verions of uBLAS. Define BOOST_UBLAS_UNSUPPORTED_COMPILER=0 to override this message. Boost 1.32.0 includes uBLAS with support for many older compilers..
You need to build your code with -DBOOST_UBLAS_UNSUPPORTED_COMPILER=0 as suggested. Quite a lot of boost will work with sun's compiler, but by no means all of it. HTH, John.