Thread: Need help! How to compile parallel C program?
i have simple testing program this:
/*the parallel hello world program*/
#include <stdio.h>
#include <mpi.h>
main(int argc, char **argv)
{
int node;
mpi_init(&argc,&argv);
mpi_comm_rank(mpi_comm_world, &node);
printf("hello world node %d\n",node);
mpi_finalize();
}
program is, can't compile program using gcc, , can't find pgcc in ubuntu. how should compile program? after compiling, should run program?
thank you.
could show command used invoke gcc error message(s) produced?
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Need help! How to compile parallel C program?
Ubuntu
Comments
Post a Comment