- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found that the output depends on optimization options if I compile the following code by ifort.
implicit none
integer i,j,k
do j=1,2
do i=1,2
write (*,*) j
do k=1,2
enddo
enddo
enddo
end
Obviously the correct output is "1 1 2 2". With the default option (-O2), however, the output "2 2 2 2" is obtained. Other options (-O1 or -O0) give the correct result.
The code was run on Itanium 2. The above-mentioned error occurs with ifort 9.1 or higher, though the code runs correctly with ifort 8.1.
implicit none
integer i,j,k
do j=1,2
do i=1,2
write (*,*) j
do k=1,2
enddo
enddo
enddo
end
Obviously the correct output is "1 1 2 2". With the default option (-O2), however, the output "2 2 2 2" is obtained. Other options (-O1 or -O0) give the correct result.
The code was run on Itanium 2. The above-mentioned error occurs with ifort 9.1 or higher, though the code runs correctly with ifort 8.1.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This sounds vaguely familiar. Have you tried it with 10.1? If it still does this for you with 10.1, please report it to Intel Premier Support.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks like it's in 10.1.006. Please file a bug report at http://premier.intel.com.
Only affects IA64
ron
Only affects IA64
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
correction: the bug is in 10.1.008, the latest IA64 compiler. File a bug report please.
ron
ron
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page