summaryrefslogtreecommitdiffstats
path: root/src/H5FDmpi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5FDmpi.h')
-rw-r--r--src/H5FDmpi.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/H5FDmpi.h b/src/H5FDmpi.h
index 0de063a..f7e0200 100644
--- a/src/H5FDmpi.h
+++ b/src/H5FDmpi.h
@@ -36,23 +36,20 @@ typedef struct H5FD_class_mpi_t {
int (*get_size)(const H5FD_t *file); /* Get the MPI size of a communicator */
MPI_Comm (*get_comm)(const H5FD_t *file); /* Get the communicator for a file */
} H5FD_class_mpi_t;
+#endif /* H5_HAVE_PARALLEL */
/* Include all the MPI VFL headers */
#include "H5FDfphdf5.h" /* Flexible PHDF5 file driver */
#include "H5FDmpio.h" /* MPI I/O file driver */
#include "H5FDmpiposix.h" /* MPI/posix I/O file driver */
-/*
- * The view is set to this value
- */
-extern char H5FD_mpi_native_g[];
-
/* Macros */
/* Single macro to check for all file drivers that use MPI */
#define IS_H5FD_MPI(file) \
(IS_H5FD_MPIO(file) || IS_H5FD_MPIPOSIX(file) || IS_H5FD_FPHDF5(file))
+#ifdef H5_HAVE_PARALLEL
/* ======== Temporary data transfer properties ======== */
/* Definitions for memory MPI type property */
#define H5FD_MPI_XFER_MEM_MPI_TYPE_NAME "H5FD_mpi_mem_mpi_type"
@@ -61,6 +58,11 @@ extern char H5FD_mpi_native_g[];
#define H5FD_MPI_XFER_FILE_MPI_TYPE_NAME "H5FD_mpi_file_mpi_type"
#define H5FD_MPI_XFER_FILE_MPI_TYPE_SIZE sizeof(MPI_Datatype)
+/*
+ * The view is set to this value
+ */
+extern char H5FD_mpi_native_g[];
+
/* Function prototypes */
#ifdef __cplusplus
extern "C" {