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

« back to all changes in this revision

Viewing changes to src/mpi/romio/adio/common/ad_iread.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:
40
40
                           ADIO_Offset offset, MPI_Request *request,
41
41
                           int *error_code)  
42
42
{
43
 
    int len, typesize;
 
43
    MPI_Count len, typesize;
44
44
    int aio_errno = 0;
45
45
    static char myname[] = "ADIOI_GEN_IREADCONTIG";
46
46
 
47
 
    MPI_Type_size(datatype, &typesize);
 
47
    MPI_Type_size_x(datatype, &typesize);
48
48
    ADIOI_Assert((count * typesize) == ((ADIO_Offset)(unsigned)count * (ADIO_Offset)typesize));
49
49
    len = count * typesize;
50
50
 
74
74
                            int *error_code)
75
75
{
76
76
    ADIO_Status status;
77
 
    int typesize;
 
77
    MPI_Count typesize;
78
78
    MPI_Offset nbytes=0;
79
79
 
80
80
    /* Call the blocking function.  It will create an error code
84
84
                     offset, &status, error_code);  
85
85
 
86
86
    if (*error_code == MPI_SUCCESS) {
87
 
        MPI_Type_size(datatype, &typesize);
 
87
        MPI_Type_size_x(datatype, &typesize);
88
88
        nbytes = (MPI_Offset)count*(MPI_Offset)typesize;
89
89
    }
90
90
    MPIO_Completed_request_create(&fd, nbytes, error_code, request);