A problem in running mpi code on ubuntu 13.10
27 Jan
2014
27 Jan
'14
9:37 a.m.
Dear MPI users, Recently I moved to Ubuntu 13.10 and I got a problem with running my codes on ubutnu 13.10. After checking my code I tried to execute a hello world! code instead to make sure that the problem is from mpi or not. Then I find that rank of all processes is 0 and size is 1 independent from the number of processes that I use with mpiexec. herer is the code: #include <mpi.h> #include <iostream> using namespace std; int main(int argc ,char ** argv) { int size,rank; MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &size); MPI_Comm_rank(MPI_COMM_WORLD, &rank); cout<<rank<<endl; MPI_Finalize(); } Is there any thing wrong with this code? Thanks in advance, Ehsan
4558
Age (days ago)
4558
Last active (days ago)
0 comments
1 participants
participants (1)
-
ehsan saei