Re: Problems with intel fortran compiler version 8

From: Steve Lionel (Steve.Lionel_at_intel.com)
Date: 06/29/04


Date: Tue, 29 Jun 2004 11:06:08 -0400

On Mon, 28 Jun 2004 16:08:45 GMT, BB <mail@mail.com> wrote:

>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.

Your program opens unit 5 and reads from unit *. These are not necessarily
the same units, and in Intel Fortran, they are not. Some implementations may
allow this, others may not. The standard certainly does not imply that this
should work. Please use the same unit number consistently.

>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.

This program declares a 10MB automatic array. In some compilers, including
ifc 7.1, these are created on the heap. In Intel Fortran 8, they are created
on the stack. You need to be sure that your stack is large enough (I found
20MB to be sufficient.)

ulimit may or may not actually raise the stack limit sufficiently, depending
on the particular Linux implementation used, system installation parameters,
phase of the moon, etc. You can try the "limit" command to see what it
actually got set to. Try setting a specific large value rather than trying
for "unlimited".

Steve Lionel
Software Products Division
Intel Corporation
Nashua, NH

User communities for Intel Software Development Products
  http://softwareforums.intel.com/
Intel Fortran Support
  http://developer.intel.com/software/products/support/



Relevant Pages

  • Re: pthread questions
    ... > linux") people might be able to help you a little better. ... the shared libraries and search their symbols. ... since the simple stabs debug info format is completely GONE ... DWARF2 defines a stack machine, ...
    (comp.os.linux.development.system)
  • Stack Size for a Thread
    ... How can i know the default Stack Size allocated to a Thread in Red Hat ... The same application worked fine when the Heap size was reduced to ... However the application worked fine in another linux box with the same ...
    (comp.os.linux.misc)
  • Re: initial stack size/limits?
    ... >>loads Java and OpenGl libraries which have their own threading. ... >>libraries are the same for both linux distributions so I am hoping for a ... "LinuxThreads" which are now built into the glibc. ... Linux allows 8M for an initial stack size and LinuxThreads allow only ...
    (comp.os.linux.development.apps)
  • Re: Memory used by the program
    ... I test on another special hardware which has almost no debug ... The stack size *available* depends on your hardware and how you ... the size of all auto variables for that function plus some overhead ... Linux tools (and the version you run *on Linux* will almost certainly ...
    (comp.lang.c)
  • Re: Ipv6 - performance results on red hat linux.
    ... similar things but IPsec happens at a different layer unless ... The processes then would tend to be CPU bound, not protocol stack bound so ... repeating the same tests with IPv6 should produce the same differences ... (also note - RedHat Linux or another brand of linux will produce extremely ...
    (RedHat)