~ubuntu-branches/ubuntu/vivid/mpich/vivid-proposed

« back to all changes in this revision

Viewing changes to src/mpid/ch3/channels/nemesis/netmod/mx/mx_poll.c

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2014-04-01 20:24:20 UTC
  • mfrom: (5.2.4 sid)
  • Revision ID: package-import@ubuntu.com-20140401202420-t5ey1ia2klt5dkq3
Tags: 3.1-4
* [c3e3398] Disable test_primitives, which is unreliable on some platforms.
            (Closes: #743047)
* [265a699] Add minimal autotest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
560
560
  
561
561
  NEM_MX_MATCH_GET_RANK(match_info,req->status.MPI_SOURCE);
562
562
  NEM_MX_MATCH_GET_TAG(match_info,req->status.MPI_TAG);    
563
 
  req->status.count = status.xfer_length;       
 
563
  MPIR_STATUS_SET_COUNT(req->status, status.xfer_length);
564
564
  req->dev.recv_data_sz = status.xfer_length;
565
565
  
566
566
  MPIDI_Datatype_get_info(req->dev.user_count, req->dev.datatype, dt_contig, userbuf_sz, dt_ptr, dt_true_lb);
596
596
                                                 "**truncate", "**truncate %d %d %d %d", 
597
597
                                                 req->status.MPI_SOURCE, req->status.MPI_TAG, 
598
598
                                                 req->dev.recv_data_sz, userbuf_sz );
599
 
    req->status.count = userbuf_sz;
 
599
    MPIR_STATUS_SET_COUNT(req->status, userbuf_sz);
600
600
    data_sz = userbuf_sz;
601
601
  }
602
602
  
607
607
    MPID_Segment_unpack( req->dev.segment_ptr, 0, &last, req->dev.tmpbuf );
608
608
    MPIU_Free(req->dev.tmpbuf);       
609
609
    if (last != data_sz) {
610
 
      req->status.count = (int)last;
 
610
      MPIR_STATUS_SET_COUNT(req->status, last);
611
611
      if (req->dev.recv_data_sz <= userbuf_sz) {
612
612
        MPIU_ERR_SETSIMPLE(req->status.MPI_ERROR,MPI_ERR_TYPE,"**dtypemismatch");
613
613
      }