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

« back to all changes in this revision

Viewing changes to src/mpi/romio/mpi-io/glue/large_count.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:
 
1
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
 
2
/*
 
3
 *   Copyright (C) 2013 University of Chicago.
 
4
 *   See COPYRIGHT notice in top-level directory.
 
5
 */
 
6
 
 
7
#include "mpioimpl.h"
 
8
 
 
9
#ifndef HAVE_MPI_TYPE_SIZE_X
 
10
int MPI_Type_size_x(MPI_Datatype datatype, MPI_Count *size)
 
11
{
 
12
    int size_int, ret;
 
13
    ret = MPI_Type_size(datatype, &size_int);
 
14
    *size = size_int;
 
15
    return ret;
 
16
}
 
17
#endif
 
18
 
 
19
#ifndef HAVE_MPI_STATUS_SET_ELEMENTS_X
 
20
int MPI_Status_set_elements_x(MPI_Status *status, MPI_Datatype datatype,
 
21
        MPI_Count count)
 
22
{
 
23
    int count_int = (int) count;
 
24
    return MPI_Status_set_elements(status, datatype, count_int);
 
25
}
 
26
#endif