<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Compilation with ifort Ok but executable does not run in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745789#M3828</link>
    <description>The code prints to the screen some data and also writes some files. But
nothing. All these operation normally take several minutes with g77.
Here, I type enter and that's it, nothing happens.&lt;BR /&gt;
I tried a basic f77 example (print *,'Hello !' !!), it works. So it might be something with my code.&lt;BR /&gt;
I used the option -warn to see...I have some warnings because some
variables have not been given an explicit type, some variables have not
been used and some source lines have been truncated. Just
warnings...could it be that ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for your help.&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Nov 2007 15:23:26 GMT</pubDate>
    <dc:creator>xtof</dc:creator>
    <dc:date>2007-11-30T15:23:26Z</dc:date>
    <item>
      <title>Compilation with ifort Ok but executable does not run</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745787#M3826</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I just installed Intel Fortran Compiler for Linux (IA32). I followed
the steps of installation and I checked with a given example that it
works. Everything OK.&lt;BR /&gt;
&lt;BR /&gt;
Then I tried to compile an example of mine, written in F77. To be sure
that all the environment variables are loaded I source the ifortvars.sh
at the beginning of my session. To use this code I must first build
some libraries, what I did with ifort. Everything went well. The
libraries were built without any error message. Then, to run the code,
I have an input file which must be compiled and linked to the
libraries. Everything goes well, the executable is made without any
error. However, the executable does nothing. Does any one have an idea
? First question, is ifort compatible with F77 programs ? Is it due to
a flag option missing ? I am not familiar with the options of ifort...&lt;BR /&gt;
&lt;BR /&gt;
Many thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Nov 2007 10:02:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745787#M3826</guid>
      <dc:creator>xtof</dc:creator>
      <dc:date>2007-11-30T10:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation with ifort Ok but executable does not run</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745788#M3827</link>
      <description>ifort supports F77 programs and there's no option needed. How do you know that the executable "does nothing"? Does the program write to a file?&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Nov 2007 14:45:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745788#M3827</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-11-30T14:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation with ifort Ok but executable does not run</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745789#M3828</link>
      <description>The code prints to the screen some data and also writes some files. But
nothing. All these operation normally take several minutes with g77.
Here, I type enter and that's it, nothing happens.&lt;BR /&gt;
I tried a basic f77 example (print *,'Hello !' !!), it works. So it might be something with my code.&lt;BR /&gt;
I used the option -warn to see...I have some warnings because some
variables have not been given an explicit type, some variables have not
been used and some source lines have been truncated. Just
warnings...could it be that ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for your help.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Nov 2007 15:23:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745789#M3828</guid>
      <dc:creator>xtof</dc:creator>
      <dc:date>2007-11-30T15:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation with ifort Ok but executable does not run</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745790#M3829</link>
      <description>To explain you a little bit more how my code works with g77...I replaced g77 by ifort and removed the options.&lt;BR /&gt;
&lt;BR /&gt;
First I build the libraries .a. The objects are created from .f files and put into the libraries .a.&lt;BR /&gt;
&lt;BR /&gt;
Then I compile my input and link it to the libraries as follows and with the following options:&lt;BR /&gt;
&lt;BR /&gt;
FFLAGS="-c -Wuninitialized -O2 -ffortran-bounds-check -funix-intrinsics-delete -malign-double -I$DIRRECTORY/source/include"&lt;BR /&gt;
&lt;BR /&gt;
This is for g77.&lt;BR /&gt;
Then compilation:&lt;BR /&gt;
&lt;BR /&gt;
g77 FFLAGS$ input.f&lt;BR /&gt;
&lt;BR /&gt;
And linking:&lt;BR /&gt;
&lt;BR /&gt;
g77 -o name_executable input.o -L$LIBDIRECTORY -llibrary&lt;BR /&gt;
&lt;BR /&gt;
So, is it correct to just replace g77 by ifort ? Should I change something else (except the options that are not adequate) ?&lt;BR /&gt;
&lt;BR /&gt;
Xtof&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Nov 2007 15:41:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745790#M3829</guid>
      <dc:creator>xtof</dc:creator>
      <dc:date>2007-11-30T15:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation with ifort Ok but executable does not run</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745791#M3830</link>
      <description>The only time I've seen something like this is when a program tries to use much more memory than the system has available in physical+swap. How much VM does your system have, and how much data is your code trying to use?&lt;BR /&gt;&lt;BR /&gt;As an example, if I try this:&lt;BR /&gt;&lt;BR /&gt; program foo&lt;BR /&gt; real :: x(400000000)&lt;BR /&gt; x = 1.0&lt;BR /&gt; print*, "hello, I hope!"&lt;BR /&gt;&lt;BR /&gt; end program foo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now if I got the number of zeros right, which is sometimes a challenge before my morning coffee, this should TRY to allocate 1.6GB. If I try to run this on a system with 1GB physical RAM and 500MB of swap, the message is usually 'killed' immediately with no other indication. Is this what you see and are doing? Here, this is the example on a 32bit Linux with just 512MB:&lt;BR /&gt;&lt;BR /&gt;$ ifort -o ff ff.f90&lt;BR /&gt;./ff&lt;BR /&gt;Killed&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;cat /proc/meminfo to determine how much memory you have. As a rule of thumb, I try to keep my apps at 80% or LESS than physical memory (RAM) in footprint. This to make sure I fit in physical memory and don't page or swap (killing performance). &lt;BR /&gt;&lt;BR /&gt;ron&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Nov 2007 15:47:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745791#M3830</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2007-11-30T15:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation with ifort Ok but executable does not run</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745792#M3831</link>
      <description>I have 1 GB + 256 MB of RAM. However, I have a little less for Linux
since I am running the Suse 10.0 under Virtual box. For Linux I
allocated 800 MB + 512 MB swap. Windows XP is taking the rest.&lt;BR /&gt;
&lt;BR /&gt;
I tried your small program, and as you said, it was killed. I checked
the memory after that and it was full. With my program it is not even
that. I don't even get the message Killed. After trying to run my
program I checked the memory with cat /proc/meminfo and the memory was
ok, around 400 MB RAM left. So it might be something else.&lt;BR /&gt;
&lt;BR /&gt;
Do you think that replacing g77 by ifort in the commands (see my
previous post) for compiling and linking is enough ? Should I use some
options proper to ifort when compiling and linking ? For instance, what
is the equivalent to -funix-intrinsics-delete in ifort ?&lt;BR /&gt;
&lt;BR /&gt;
Xtof&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Sat, 01 Dec 2007 10:54:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745792#M3831</guid>
      <dc:creator>xtof</dc:creator>
      <dc:date>2007-12-01T10:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation with ifort Ok but executable does not run</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745793#M3832</link>
      <description>There is no ifort equivalent of that g77 option.&lt;BR /&gt;&lt;BR /&gt;I would suggest at this point that you contact Intel Premier Support and attach your program so that we can see what might be wrong. It's very difficult to speculate here without seeing the source.&lt;BR /&gt;</description>
      <pubDate>Sat, 01 Dec 2007 15:12:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745793#M3832</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-12-01T15:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation with ifort Ok but executable does not run</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745794#M3833</link>
      <description>&lt;P&gt;Xtof,&lt;/P&gt;
&lt;P&gt;Can you attempt to run the application in Debug mode via a Step Into as opposed to breaking at the 1st statement in the application. That is to say start debugging at the C Runtime initialization code for the application.&lt;/P&gt;
&lt;P&gt;If the application fails to load up to that point then it is a execuitable image problem.&lt;/P&gt;
&lt;P&gt;If it makes it to the C runtime initialization code then it is an allocation problem (either heap or stack). By tracing through the initialization code you might discover just what is causing the problem.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Dec 2007 20:08:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745794#M3833</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2007-12-01T20:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation with ifort Ok but executable does not run</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745795#M3834</link>
      <description>How do I do that ? Should I compile with -g option and run into ddd or
idb debuggers ? Sorry but I am not very familiar with this...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Xtof&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Sun, 02 Dec 2007 15:21:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-with-ifort-Ok-but-executable-does-not-run/m-p/745795#M3834</guid>
      <dc:creator>xtof</dc:creator>
      <dc:date>2007-12-02T15:21:12Z</dc:date>
    </item>
  </channel>
</rss>

