Re: some flags for optimization?? ( run with higher speed)??
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: some flags for optimization?? ( run with higher speed)??         

Group: comp.lang.fortran · Group Profile
Author: Steve Lionel
Date: Sep 8, 2008 06:33

On Mon, 8 Sep 2008 00:29:40 -0700 (PDT), Fatemeh gmail.com>
wrote:
>I've written a code in fortran90. Since my sample is large, my code
>runs slowly.
>I need some flags in order to enter them to Makefile which can be able
>to run the code with higher speed.

Since you are using Intel Fortran (for Linux, I assume), please feel free to
ask your questions in our user forum at:

http://softwarecommunity.intel.com/isn/Community/en-US/forums/1011/ShowForum.asp...

-O3 has been suggested. You should also use an instruction set optimization
option appropriate for the processor you're using (which you did not specify.)
http://softwarecommunity.intel.com/isn/Community/en-US/forums/1011/ShowForum.asp...
describes these options and lists the processors to which they apply. You
should also read
http://www.intel.com/support/performancetools/sb/CS-028403.htm For example,
if you were using an Intel Core 2 processor, use -xT .

Another option you can experiment with is -ipo. This needs to be specified
both for compile and for the ifort command that creates the executable. This
has the same effect as combining all the sources as mentioned by Ivan.

An option that can make a significant difference in some applications is
-no-prec-div, which uses a faster method for divides, with the tradeoff of
some accuracy.

I strongly recommend reading the Intel documentation's section on optimizing
applications. It has a lot of good advice.

--
Steve Lionel
Developer Products Division
Intel Corporation
Nashua, NH

For email address, replace "invalid" with "com"

User communities for Intel Software Development Products
http://softwareforums.intel.com/
Intel Fortran Support
http://support.intel.com/support/performancetools/fortran
My Fortran blog
http://www.intel.com/software/drfortran
no comments
diggit! del.icio.us! reddit!

RELATED THREADS
SubjectArticles qty Group
FS: Banner Flag Flag 3'x 5' Washington Nationals - Item #: 395261 via auctionalt.marketplace.online.ebay ·