-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes after testing with mpich-3.0.1
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,29 @@ | ||
#ifndef PyMPI_COMPAT_MPICH3_H | ||
#define PyMPI_COMPAT_MPICH3_H | ||
|
||
#if defined(MPICH_NUMVERSION) && (MPICH_NUMVERSION < 30100000) | ||
|
||
static int PyMPI_MPICH3_MPI_Type_size_x(MPI_Datatype datatype, MPI_Count *size) | ||
{ | ||
int ierr = MPI_Type_commit(&datatype); if (ierr) return ierr; | ||
return MPI_Type_size_x(datatype,size); | ||
} | ||
#define MPI_Type_size_x PyMPI_MPICH3_MPI_Type_size_x | ||
|
||
static int PyMPI_MPICH3_MPI_Type_get_extent_x(MPI_Datatype datatype, MPI_Count *lb, MPI_Count *extent) | ||
{ | ||
int ierr = MPI_Type_commit(&datatype); if (ierr) return ierr; | ||
return MPI_Type_get_extent_x(datatype,lb,extent); | ||
} | ||
#define MPI_Type_get_extent_x PyMPI_MPICH3_MPI_Type_get_extent_x | ||
|
||
static int PyMPI_MPICH3_MPI_Type_get_true_extent_x(MPI_Datatype datatype, MPI_Count *lb, MPI_Count *extent) | ||
{ | ||
int ierr = MPI_Type_commit(&datatype); if (ierr) return ierr; | ||
return MPI_Type_get_true_extent_x(datatype,lb,extent); | ||
} | ||
#define MPI_Type_get_true_extent_x PyMPI_MPICH3_MPI_Type_get_true_extent_x | ||
|
||
#endif | ||
|
||
#endif /* !PyMPI_COMPAT_MPICH3_H */ |