LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-30-2012, 12:43 AM   #1
rpd25
LQ Newbie
 
Registered: Dec 2011
Posts: 12

Rep: Reputation: Disabled
Compare times to run a program - Serial vs MPI


Hi,

I have a fortran program with serial and MPI version. I want to compare the time taken by these programs to run. I use ifort/gfortran compiler.

How to compare the time taken by each program to run? Is there any sample code for comparison?

Thanks,
Rakesh
 
Old 01-30-2012, 06:27 PM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,520

Rep: Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216
Hi,

i you just want the total execution time, you could use the have you tried using the "time" command on the command line.

Eg.
Code:
time program
If you want actual profiling, you could try using valgrind with the callgrind or cachegrind tools. You can view the output of valgrind with the kcachegrind gui.

HTH,

Evo2.
 
  


Reply

Tags
compare, mpi, time


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mpi program farooq1220 Programming 4 10-31-2010 09:04 PM
problem compiling mpi program(not while install) gamekiller Programming 3 10-03-2007 12:17 AM
MPI program running on cluster. ArthurHuang Programming 1 09-24-2007 02:20 AM
how to compile and run mpi on beowulf hussykoala Linux - Networking 1 09-16-2006 01:20 AM
Command to run a program at designated times nigma Linux - Software 5 05-06-2003 10:07 AM


All times are GMT -5. The time now is 05:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration