parallelized loop with openmp doesn't work when pasted in a large program

parallelized loop with openmp doesn't work when pasted in a large program

I am a new user of openmp. My objective is parallelizing a inner loop in a big program written in Fortran to use it in a multiprocessor server. As a first step and a test, i have parallelized a small double loop and all's OK.

But when i have pasted this lines of code in the subroutine that i want to parallelize, there is a "segmentation fault" error.

How can the code outside the parallelized loop influence in the parallelization process?

Of course there are large arrays in my program. But...what's wrong? I don't understand.

1 envío / 0 nuevos
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.