ph5diff.h

00001 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00002  * Copyright by The HDF Group.                                               *
00003  * Copyright by the Board of Trustees of the University of Illinois.         *
00004  * All rights reserved.                                                      *
00005  *                                                                           *
00006  * This file is part of HDF5.  The full HDF5 copyright notice, including     *
00007  * terms governing use, modification, and redistribution, is contained in    *
00008  * the files COPYING and Copyright.html.  COPYING can be found at the root   *
00009  * of the source code distribution tree; Copyright.html can be found at the  *
00010  * root level of an installed copy of the electronic HDF5 document set and   *
00011  * is linked from the top-level documents page.  It can also be found at     *
00012  * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
00013  * access to either file, you may request a copy from help@hdfgroup.org.     *
00014  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00015 
00016 #ifndef _PH5DIFF_H__
00017 #define _PH5DIFF_H__
00018 
00019 #define PRINT_DATA_MAX_SIZE     512
00020 #define OUTBUFF_SIZE            (PRINT_DATA_MAX_SIZE*4)
00021 /* Send from manager to workers */
00022 #define MPI_TAG_ARGS            1
00023 #define MPI_TAG_PRINT_TOK       2
00024 
00025 /*Sent from workers to manager */
00026 #define MPI_TAG_TOK_REQUEST     3
00027 #define MPI_TAG_DONE            4
00028 #define MPI_TAG_TOK_RETURN      5
00029 #define MPI_TAG_PRINT_DATA      6
00030 
00031 /* Operational tags used to init and complete diff */
00032 #define MPI_TAG_END             7
00033 #define MPI_TAG_PARALLEL        8
00034 
00035 extern int      g_nTasks;
00036 extern unsigned char g_Parallel;
00037 extern char    outBuff[];
00038 extern int      outBuffOffset;
00039 extern FILE *   overflow_file;
00040 
00041 struct diff_args
00042 {
00043     char        name[256];
00044     h5trav_type_t   type;
00045     diff_opt_t  options;
00046 };
00047 
00048 struct diffs_found
00049 {
00050     hsize_t nfound;
00051     int     not_cmp;
00052 };
00053 
00054 #ifdef H5_HAVE_PARALLEL
00055 #include <mpi.h>
00056 #endif
00057 
00058 #endif  /* _PH5DIFF_H__ */
00059