Need help to handle a bug
N.M. Maclaren
nmm1@cam.ac.uk
Wed Jun 28 17:12:00 GMT 2017
On Jun 26 2017, saeedparvar wrote:
>The first thing that I noticed is the code blocks when a subroutine
>,which has a loop inside itself with index variable such as I,J for
>example, is called from a loop which has the same index variable(counter
>I,J) of that subroutine. When I disable OMP command of just those
>subroutine everything is fine and the code works well.
>Do you have any remedy for it?
That is not likely to be the cause. You have almost certainly fallen foul
of one of OpenMP's many arcane restrictions. If you look at my course, I
describe many of them and how to write code that will actually work.
Lecture 7 is almost all warnings of things that might seem to work, but
won't; however, you may find the earlier ones relevant.
http://people.ds.cam.ac.uk/nmm1/OpenMP/index.html
Regards,
Nick Maclaren.
More information about the Fortran
mailing list