LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs > krish_iitd
User Name
Password

Notices

Uncategorized Entries with no category
Old

How to compile and run MPI Program

Posted 02-29-2012 at 10:59 PM by krish_iitd

For compiling in C language
  • mpicc.openmpi program.c -o output

/*program.c is the name of the program you have done*/

For running with five processes and multiple host
  • mpirun.openmpi -np 5 --hostfile host_file_name output

/*Where host_file_name is the host file which contains the name of hosts with line break for each host e.g.
localhost
host1
host2
host3*/
LQ Newbie
Posted in Uncategorized
Views 319 Comments 0 krish_iitd is offline

  



All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement

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