Problems with intel fortran compiler version 8
From: BB (mail_at_mail.com)
Date: 06/28/04
- Next message: James Van Buskirk: "Re: how to use 1D array as a multidimensional array"
- Previous message: beliavsky_at_aol.com: "Re: how to use 1D array as a multidimensional array"
- Next in thread: Richard Maine: "Re: Problems with intel fortran compiler version 8"
- Reply: Richard Maine: "Re: Problems with intel fortran compiler version 8"
- Reply: Andy Mai: "Re: Problems with intel fortran compiler version 8"
- Reply: Toon Moene: "Re: Problems with intel fortran compiler version 8"
- Reply: Steve Lionel: "Re: Problems with intel fortran compiler version 8"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Jun 2004 16:08:45 GMT
I have found two problems with the NASA overflow code using Intel Fortran
8 for linux. I'm using the latest version (just updated today) and have
posted my problems to premier.intel.com. Item number 1 concerns reading
a namelist file.
Here is the test program :
PROGRAM FPREAD
C
C All procs do some initialization, global master reads
C MPIINP namelist input.
C
C Called by: OVERRU.
C
C Calls: none.
C
IMPLICIT NONE
CHARACTER*150 OFILENAME
INTEGER*4 ILEN
INTEGER*4 JMETHOD, KMETHOD, LMETHOD, JCHUNK
INTEGER*4 KCHUNK, LCHUNK
INTEGER*4 FINEPART(5,10)
INTEGER*4 SHARZONE(5,10)
C
C
NAMELIST/MPIINP/ JMETHOD,KMETHOD,LMETHOD,
& JCHUNK ,KCHUNK ,LCHUNK,
& FINEPART,SHARZONE
C
INTEGER N,I
OFILENAME = 'over.1.14procs.inp'
ILEN = INDEX(OFILENAME,' ')-1
OPEN(5,FILE=OFILENAME(1:ILEN),STATUS='OLD')
C
C Defaults for method and chunk size.
C
JMETHOD = 4
KMETHOD = 4
LMETHOD = 4
JCHUNK = 10
KCHUNK = 10
LCHUNK = 10
C
C
READ(*,MPIINP,END=120,ERR=110)
C
C Write a summary of the 'MPI' input parameters.
C
WRITE(*,1) JMETHOD,KMETHOD,LMETHOD,JCHUNK,KCHUNK,LCHUNK
1 FORMAT(/' MPI PARAMETERS ($MPIINP)'/
& 4X,'J DIRECTION SOLVER (JMETHOD) = ',I5/
& 4X,'K DIRECTION SOLVER (KMETHOD) = ',I5/
& 4X,'L DIRECTION SOLVER (LMETHOD) = ',I5/
& 4X,'J DIRECTION CHUNK SIZE (JCHUNK ) = ',I5/
& 4X,'K DIRECTION CHUNK SIZE (KCHUNK ) = ',I5/
& 4X,'L DIRECTION CHUNK SIZE (LCHUNK ) = ',I5)
WRITE(6,*) FINEPART
WRITE(6,*) SHARZONE
GOTO 130
C
110 CONTINUE
WRITE(*,"(' ** ERROR ** ERROR READING NAMELIST $MPIINP')")
GOTO 130
120 WRITE(*,"(' ** ERROR ** EOF $MPIINP')")
130 CONTINUE
STOP
END
and here is my namelist input :
$MPIINP
FINEPART= 2, 3, 1, 1,
5, 3, 1, 1,
7, 1, 2, 1,
4, 2, 1, 1,
3, 2, 1, 1,
SHARZONE= 1, 1,
2, 6,
$END
If I change the * (preconnected unit) to a 5 it works. If I run it the
way it is, it hangs. It works correctly under Intel 7 and Portland
group.
I'm also getting a segfault using an automatic array. I'm running on a
workstation with 2GB memory, so it shouldn't be a memory size. Linux
version is Redhat 7.3. This program also works under Intel 7 and
Portland Group.
Here is the auto program :
Program auto
n = 5000
m = 500
print *,n*m
call sub1(n,m)
stop
end
Subroutine sub1(n,m)
Dimension a(n,m)
call sub2(a,n,m)
return
end
Subroutine sub2(a,n,m)
dimension a(n,m)
do i=1,n
do j=1,m
a(i,j) = 0.0
enddo
enddo
return
end
Maybe I just don't understand how automatic arrays work.
If anyone can shed any information on the problems I'm having, I would
appreciate it.
BB
The Boeing Company
- Next message: James Van Buskirk: "Re: how to use 1D array as a multidimensional array"
- Previous message: beliavsky_at_aol.com: "Re: how to use 1D array as a multidimensional array"
- Next in thread: Richard Maine: "Re: Problems with intel fortran compiler version 8"
- Reply: Richard Maine: "Re: Problems with intel fortran compiler version 8"
- Reply: Andy Mai: "Re: Problems with intel fortran compiler version 8"
- Reply: Toon Moene: "Re: Problems with intel fortran compiler version 8"
- Reply: Steve Lionel: "Re: Problems with intel fortran compiler version 8"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|