OpenMP not work in ubuntu 10.10

Asked by Oleg

When I compile with omp_libs=['gomp'] program segfault.

If I compile without omp_libs=['gomp'] I see error:
[...]/escript.d/lib/libescript.so: undefined symbol: omp_get_wtime

Question information

Language:
English Edit question
Status:
Solved
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Solved by:
Oleg
Solved:
Last query:
Last reply:
Revision history for this message
Bob (caltinay) said :
#1

Try adding the -fopenmp flag to both compiler and library flags, i.e. add the following to your scons options file:
omp_optim = '-fopenmp'
ld_extra = '-fopenmp'
This should automatically add the required libraries so no need to add 'gomp' manually.

Revision history for this message
Oleg (oleg100) said :
#2

Thanks. It work.