CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   How i can speed up my fortran code (https://www.cfd-online.com/Forums/main/6948-how-i-can-speed-up-my-fortran-code.html)

cfd student December 20, 2003 18:32

How i can speed up my fortran code
 
Any help would be appreciated I would like to speedup my fortran 90 code execution, can i do something in build setting to reduce the execution time?. cfd student.

Peter Attar December 20, 2003 22:55

Re: How i can speed up my fortran code
 
A lot of things can be done..depending on your compiler you can set compiler flags so as to see where your bottleneck is..ie which routines are taking up most of the execution time. Then you can concentrate on making those routines faster. Also you can play around with compiler flags which can be used to optimize the code for speed.

cfd student December 21, 2003 02:08

Re: How i can speed up my fortran code
 
Thanks peter .

cfd student December 21, 2003 02:09

Re: How i can speed up my fortran code
 
Thanks peter Altar.

Praveen December 22, 2003 08:38

Re: How i can speed up my fortran code
 
Use some optimization flags like -O or -O2. Many of the optimization flags are not recommended for numerical computations. Read the fortan manpage for more info.

Steve December 22, 2003 11:55

Re: How i can speed up my fortran code
 
and....

It sounds obvious, but it's a common mistake. Make absolutely sure you've not got debugging or profiling activated.


All times are GMT -4. The time now is 12:13.