Thread: MPI question

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    167

    MPI question

    I don't know if this is the right forum to ask a MPI question but is the best I could find.

    I have the following problem:

    Code:
    	
    ....
    MPI_Irecv(buffer, sizeof(struct pachet_s), MPI_CHAR, MPI_ANY_SOURCE, 0, MPI_COMM_WORLD, &request);
    	start = clock();
    	
    	delta = 0;
    	printf(">%d<\n", nod.id);
    	while(delta < EXIT_TIME && 0 == done)
    	{
    		//MPI_Test(&request,&done,&status);
    		delta = ((double)clock() - start) / CLOCKS_PER_SEC ;
    	}
    	printf("%d iese\n", nod.id);
    MPI_Finalize();
    and the output is

    Code:
    >0<
    >1<
    0 iese
    1 iese
    >2<
    2 iese
    >9<
    9 iese
    >10<
    10 iese
    >3<
    3 iese
    >4<
    4 iese
    >5<
    5 iese
    >6<
    6 iese
    >7<
    7 iese
    >8<
    >11<
    11 iese
    8 iese
    Assertion failed in file ch3u_connect_sock.c at line 630: conn->state == CONN_STATE_CONNECT_ACCEPT
    [cli_2]: aborting job:
    internal ABORT - process 2
    rank 2 in job 23  pamblica_38082   caused collective abort of all ranks
      exit status of rank 2: return code 1
    the ideea is that the MPI_Irecv function could or could not receive something for example I wait 5 secs and after that if I don't receive anything I exit. But some errors appear. How can I fix them.

    Please help! Pretty please! :P

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Sorry, Spank. I know zip about MPI. I was wondering why exit time and done are used to test in your while loop, and seem to have not been initialized?

    Just picky, but "0 == done", is just not as clear as "!done", imo.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM