LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09: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 690 Comments 0 krish_iitd is offline

  



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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration