For Programmers: Free Programming Magazines  


Home > Archive > Fortran > May 2005 > ifort compiler option









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ifort compiler option
icymist

2005-05-24, 8:57 am

Hi,

I am using the Intel Fortran Compiler version 8.1.

The problem in brief is that I would like to know if there is any
compiler option to tell me into what all subtoutines the compiler is
going when executing the code. I went through all the compiler
options, but I couldn't find anything. Probably I missed something.

To give the complete view of the problem :
I am using a software callde dlpoly, which is a collection of
subroutines, written in fortran 90. I compiled it (it compiles all the
subroutines and while executing, selects the subroutines which are
needed) with intel fortran compiler. When I am executing the code, I
want to know what subroutines are being executed. This would help me
know what all subroutines are being used in the software. I need to do
some modification to the code to suit my purpose. To help me in this
purpose I want the compiler to print the names of the subroutines into
which it's going while executing the code. I used the option -B80 with
the Absoft Compiler V 9. which prints all the subroutines into which
the execution is going.

Any help is much appreciated.

Regards,
Chaitanya.
--
To err is human, but to really screw up you need a computer.

Ian Bush

2005-05-24, 8:57 am


Hi Chaitanya,

icymist wrote:

> Hi,
>
> I am using the Intel Fortran Compiler version 8.1.
>
> The problem in brief is that I would like to know if there is any
> compiler option to tell me into what all subtoutines the compiler is
> going when executing the code. I went through all the compiler
> options, but I couldn't find anything. Probably I missed something.
>
> To give the complete view of the problem :
> I am using a software callde dlpoly, which is a collection of
> subroutines, written in fortran 90.


I don't know of any flag for the Intel compiler that does that, and to
be honest Absoft was unusual in having a flag to do it. However DL_POLY
is one of the codes I support, so if you want drop me an email ( make the
obvious adjustment ) and I can either help you or point you to someone
who can,

Ian


Steve Lionel

2005-05-24, 3:59 pm

On Tue, 24 May 2005 11:40:27 +0000, Ian Bush <I.J.Bush@nospam.dl.ac.uk> wrote:

>icymist wrote:
>
>
>I don't know of any flag for the Intel compiler that does that, and to
>be honest Absoft was unusual in having a flag to do it. However DL_POLY
>is one of the codes I support, so if you want drop me an email ( make the
>obvious adjustment ) and I can either help you or point you to someone
>who can,


I'd reply to the original post, but my newsreader isn't showing it...

The Intel 8.1 compilers include a "Code Coverage Tool" that will let you know
this information not only at the routine level, but also the "basic block"
level. For more information, see
http://www.intel.com/software/produ...de-Coverage.pdf


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/
Alfredo Buttari

2005-05-25, 8:57 am

You can use the -p flag and profile your application with gprof. That
would tell you which routines have been executed and how much time your
application spent in each of them. You can also compile it with the -g
-no_cpprt (this last is necessary due to a compiler bug...I guess) and
then follow the execution with a debugger (I use idb that comes with
the intel compilers), but this is unfeasible if the application takes a
lot of time.

hope that helps

regards

Alfredo

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com