LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


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 342 Comments 0 krish_iitd is offline

  



All times are GMT -5. The time now is 03:11 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration