Commit 193ea351 authored by Philip Carns's avatar Philip Carns

more MPI 1.x support (should have been in last commit)


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@392 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 0399aaee
This diff is collapsed.
......@@ -195,6 +195,45 @@ AC_TRY_LINK([#include <mpi.h>], [
AC_MSG_ERROR(Darshan requires a version of MPI with MPI-IO support)
)
AC_MSG_CHECKING(for generalized requests in MPI-IO)
old_cflags="$CFLAGS"
CFLAGS="$CFLAGS -Wall -Werror"
AC_TRY_COMPILE(
[
#include <mpi.h>
#include <stdlib.h>
],
[
int ret = 0;
MPI_Request req;
ret = MPI_File_iread_at(MPI_FILE_NULL, 0, NULL, 0, MPI_BYTE, &req);
],
AC_MSG_RESULT(yes)
AC_DEFINE_UNQUOTED(__D_MPI_REQUEST, MPI_Request, Generalized request type for MPI-IO)
,
AC_MSG_RESULT(no)
AC_MSG_CHECKING(for MPIO_Request in MPI-IO)
AC_TRY_COMPILE(
[
#include <mpi.h>
#include <stdlib.h>
],
[
int ret = 0;
MPIO_Request req;
ret = MPI_File_iread_at(MPI_FILE_NULL, 0, NULL, 0, MPI_BYTE, &req);
],
AC_MSG_RESULT(yes)
AC_DEFINE_UNQUOTED(__D_MPI_REQUEST, MPIO_Request, Generalized request type for MPI-IO)
,
AC_MSG_RESULT(no)
AC_MSG_ERROR(Unable to find valid request type for MPI-IO)
)
)
CFLAGS="$old_cflags"
AC_SUBST(darshan_lib_path)
AC_SUBST(darshan_bin_path)
AC_SUBST(__CP_LOG_PATH)
......
/* darshan-config.h.in. Generated from configure.in by autoheader. */
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
/* Name of the environment variable that stores the jobid */
#undef CP_JOBID
......@@ -57,9 +54,6 @@
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
......@@ -69,20 +63,15 @@
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
# undef WORDS_BIGENDIAN
# endif
#endif
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
/* Location to store log files at run time */
#undef __CP_LOG_PATH
/* Memory alignment in bytes */
#undef __CP_MEM_ALIGNMENT
/* Generalized request type for MPI-IO */
#undef __D_MPI_REQUEST
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment