OpenMP® Forum

Discussion on the OpenMP specification run by the OpenMP ARB. OpenMP and the OpenMP logo are registered trademarks of the OpenMP Architecture Review Board in the United States and other countries. All rights reserved.

I am about to parallelize a program written with serial programming. When I try to run the program the #pragma omp parallel regions seem to run in serial anyway. The following code is an example of my problem:

Calling from thread number: 0The current number of threads are: 1Maximum number of threads available is: 4Code is parallel = 0

When I run simple openMP programs, like the omp_hello.c example for instance, there is no problem. As of yet only one function in one class has been modified so it can't be a problem relating to nested parallelism. I use Trolltech Qt 4.4.0 and compiling with the QMAKE_CXXFLAG = -fopenmp and QMAKE_LFLAG = -fopenmp variables in the .pro- file. I use g++ from the gcc 4.3.1 package and my computer specs are: a MSI P35 Neo motherboard with a Intel Core2 Quad 2.4 GHz and 4 GB RAM. I run Ubuntu 8.04 64-bits operating system. I also have remembered to included the omp.h library so that isn't the problem.