- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Software:
ifort 8.1.024
Gentoo linux
kernel 2.6.11
glibc 2.3.5
Box:
HP DL590
4 Itatium-1 800MHz CPUs
32G memory
when I try to I/O some big binary arrays. I caught Segmentation fault
Examples:
1.
-------------------------------------------------
integer, parameter :: nc=416
integer, parameter :: hc=nc/2
integer, parameter :: np=hc**3
integer, parameter:: nn=2
integer :: nploc(nn)
real, dimension(6,np/nn*2,nn) :: xv_out
......
write(12) xv_out(1:6,1:nploc(i),i) !! here cause segmentation fault
------------------------------------------------------------------------------
the size of output file is a few hundred MB
2 or read from the the big file
just like before
----------------------------------------
.....
read(12) xv_out(1:6,nploc(i),i) !! cause segmentation fault
--------------------------------------------
the arrays I want to input or output is just a part of the arrays I defined.
but If dynamic allocate a arrays ,then output the new one , it workslike:
allocate (tmp_xv(6,nploc(i),1))
tmp_xv=xv_out(1:6,nploc(i),i)
write(12) tmp_xv
or
do j=....
do k=....
do i=.....
write(12) xv(i,jk )
enddo
enddo
enddo
although it worked slowly but without problem
I feel really confused about these .
ifort 8.1.024
Gentoo linux
kernel 2.6.11
glibc 2.3.5
Box:
HP DL590
4 Itatium-1 800MHz CPUs
32G memory
when I try to I/O some big binary arrays. I caught Segmentation fault
Examples:
1.
-------------------------------------------------
integer, parameter :: nc=416
integer, parameter :: hc=nc/2
integer, parameter :: np=hc**3
integer, parameter:: nn=2
integer :: nploc(nn)
real, dimension(6,np/nn*2,nn) :: xv_out
......
write(12) xv_out(1:6,1:nploc(i),i) !! here cause segmentation fault
------------------------------------------------------------------------------
the size of output file is a few hundred MB
2 or read from the the big file
just like before
----------------------------------------
.....
read(12) xv_out(1:6,nploc(i),i) !! cause segmentation fault
--------------------------------------------
the arrays I want to input or output is just a part of the arrays I defined.
but If dynamic allocate a arrays ,then output the new one , it workslike:
allocate (tmp_xv(6,nploc(i),1))
tmp_xv=xv_out(1:6,nploc(i),i)
write(12) tmp_xv
or
do j=....
do k=....
do i=.....
write(12) xv(i,jk )
enddo
enddo
enddo
although it worked slowly but without problem
I feel really confused about these .
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try a more recent compiler to see if it helps. We made some improvements in the way the stack was used in I/O statements.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where Can I get the most recent vesion ifort ?
From Website the most recent version ifort is 8.1.024,
which is just the version I am using.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8.1.028 is the most recent. It is available from File Downloads at Intel Premier Support. You need to have registered your serial number in order to get at this, and non-commercial users can't getr updates.
Consider using an implied DO loop as an alternative.
Consider using an implied DO loop as an alternative.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Will ifort version 8.1.28 be released to no-commercial users ? I hope it will :smileyhappy:.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you get a non-commercial license, you are licensed for the current version but not updates.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
guoquan, did you test your cases with flag -O3 / -O2 in the compile to see what willhappen?

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