- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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 .
- Marcas:
- Intel® Fortran Compiler
Link copiado
6 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Will ifort version 8.1.28 be released to no-commercial users ? I hope it will :smileyhappy:.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
When you get a non-commercial license, you are licensed for the current version but not updates.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
guoquan, did you test your cases with flag -O3 / -O2 in the compile to see what willhappen?
Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora