Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove the redefinition of MPI_Offset and MPI_OFFSET #1916

Merged
merged 1 commit into from
Mar 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/clib/pio_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
#include <mpe.h>
#endif /* USE_MPE */

#ifndef MPI_OFFSET
//#ifndef MPI_OFFSET
/** MPI_OFFSET is an integer type of size sufficient to represent the
* size (in bytes) of the largest file supported by MPI. In some MPI
* implementations MPI_OFFSET is not properly defined. */
#define MPI_OFFSET MPI_LONG_LONG
#endif
//#define MPI_OFFSET MPI_LONG_LONG
//#endif

/* These are the sizes of types in netCDF files. Do not replace these
* constants with sizeof() calls for C types. They are not the
Expand All @@ -57,10 +57,10 @@
#define MPI_OFFSET OMPI_OFFSET_DATATYPE
#endif
#endif
#ifndef MPI_Offset
//#ifndef MPI_Offset
/** This is the type used for PIO_Offset. */
#define MPI_Offset long long
#endif
//#define MPI_Offset long long
//#endif

/** Some MPI implementations do not allow passing MPI_DATATYPE_NULL to
* comm functions even though the send or recv length is 0, in these
Expand Down