- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wrote an ultra-simple fortran program which gives different outputs depending on compiler (ifort or gfortran). In additional I believe the ifort's output to be fraud.
the program is:
program A
integer :: alfa, i,levels
levels=60
!$omp parallel do collapse(2) private(alfa,i) default(shared)
do alfa=1,10
do i=(-levels),levels
print *,i,alfa,levels
end do
end do
!$omp end parallel do
end program A
This should produce (60*2+1)*10 output lines, however the output when using ifort compiler is just:
-60 1 60
-59 1 60
-58 1 60
-57 1 60
-56 1 60
-55 1 60
-54 1 60
-53 1 60
-52 1 60
-51 1 60
Compilation using gfortran returns all 1210 lines.
Is there something extremely easy that I am missing? I noticed that
changing
do i=(-levels),levels
into
do i=-levels,levels
makes ifort-compiled version return 1210 lines as well.
Both 12.0.1.107 and 12.1.??? have been tried.
Regards,
Mateusz cki
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you confirm that the described phenomenon really exists (ie it is not merely a result of corrupted library path etc/ different compiler versions conflict?) and it really is a bug?
Regards,
Mateusz cki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can reproduce the problem - it seems related to the use of the COLLAPSE clause. I will report this to the developers. Issue ID is DPD200178142.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A fix has been found for this issue. We are planning to include it in the next update which is currently scheduled for mid-July.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page