Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

errors with openMP

m-yaghoobi
Beginner
783 Views
Hi.
I have already used Intel visual Fortran 11 and utilized openMP to parallelize my code.
However,when I use SECTION type (i.e.,!$OMP SECTIONS) and the file size become bigger than a specific value, this sectioncould not bedetected by compiler.It means when the file size is small, compilershow this remark:"openMP DEFINED SECTION WAS PARALLILZED". But with growing file size (with the correct sequential format),programm neglect this SECTION PART.
Is it really a relationship between size and this problem?
Best regards, Mohammadreza
0 Kudos
3 Replies
TimP
Honored Contributor III
783 Views
What does the compiler say about it (e.g. with /Qopenmp-report2) ?
0 Kudos
jimdempseyatthecove
Honored Contributor III
783 Views
>>SECTION type (i.e.,!$OMP SECTIONS)

You can use either:

!$OMP PARALLEL SECTIONS
!$OMP SECTION
... ! section 1
!$OMP SECTION
... ! section 2
!OMP END PARALLEL SECTIONS

(1st "!$OMP SECTION" is optional)

.or.

!$OMP PARALLEL
...
!$OMP SECTIONS
!$OMP SECTION
... ! section 1
!$OMP SECTION
... ! section 2
!OMP END SECTIONS
...
!OMP END PARALLEL


Check to see if your code is blending the two different formats resulting in an unintended nesting of parallel regions (sections).

If you suspect the file size is introducing a compiler error then think about making a subroutine out of the section (then call the subroutine from the section).

Jim Dempsey
0 Kudos
anishtain4
Beginner
783 Views
Jim can I ask you a question about eclipse and photran? I know intel does not support eclipse yet but I'm trying to use another compiler so I can't make a topic here, but I need help desperately. please let me know on my email if you can spare anytime for me at my email: hosseinali.ir@gmail.com
0 Kudos
Reply