views:

1586

answers:

2

Hi,

Iam getting this warning : warning: ignoring #pragma omp parallel during compilation of a C code with openmp directives on linux

Gcc version is 4.4. Is this only a warning or the execution is in actual not in parallel.Need solution with a bit of some explanation.

I have provide -fopenmp with make command , but gcc doesn't accept that, other wise for single compilation of file, i-e gcc -fopenmp works alright.

The problem exists for make all files.

Thanks

anum

+2  A: 

IIRC you have to pass -fopenmp to the g++ call to actually enable OpenMP. This will also link against the OpenMP runtime system.

Manuel
A: 

Make sure that lib-gomp and lib-gomp-dev is installed. In some strange distributions it is removed. It is the essential runtime and development library.

Brandon Pelfrey

related questions