summaryrefslogtreecommitdiffstats
path: root/pablo/PabloHDF_SDDF.c
diff options
context:
space:
mode:
authorDan Wells <dwells@cs.uiuc.edu>2001-07-05 15:07:00 (GMT)
committerDan Wells <dwells@cs.uiuc.edu>2001-07-05 15:07:00 (GMT)
commit5fa81dec82fee408f233a4d9df4b3367c16745a0 (patch)
tree66da37d2f5d49846cbc30b980c09c1f4dcc4299f /pablo/PabloHDF_SDDF.c
parentd9d71b06e46f5b52eec44d8a86b0394de49940cf (diff)
downloadhdf5-5fa81dec82fee408f233a4d9df4b3367c16745a0.zip
hdf5-5fa81dec82fee408f233a4d9df4b3367c16745a0.tar.gz
hdf5-5fa81dec82fee408f233a4d9df4b3367c16745a0.tar.bz2
[svn-r4110]
Purpose: feature Description: allows the option of building the library libhdf-inst.a so that it can link with either the Pablo Trace Libraries or with the Pablo Performance Capture Facility (PCF) Solution: Added code for conditional compilation using the PCF_BUILD flag. When the library is made, the user can specify PABLO_BUILD=PCF which will cause the -DPCF_BUILD to be passed to the compiler. Platforms tested: Solaris, IRIX64
Diffstat (limited to 'pablo/PabloHDF_SDDF.c')
-rw-r--r--pablo/PabloHDF_SDDF.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/pablo/PabloHDF_SDDF.c b/pablo/PabloHDF_SDDF.c
index bf42112..4858086 100644
--- a/pablo/PabloHDF_SDDF.c
+++ b/pablo/PabloHDF_SDDF.c
@@ -55,12 +55,9 @@
// Generate a SDDF binary format record descriptor *
// for the HDF procedure exits *
//======================================================================*/
+#ifndef PCF_BUILD
#include <stdio.h>
-#ifdef H5_HAVE_PARALLEL
-#include "mpi.h"
-#endif
-
#include "H5config.h"
#undef H5_HAVE_PABLO
#include "H5private.h"
@@ -112,6 +109,7 @@ void endIOTrace( void );
void endMPIOTrace( void ) {return;}
#endif
extern char *hdfRecordPointer;
+extern char HDFprocNames[][40];
/*======================================================================*
// Prototypes of functions in this file. *
//======================================================================*/
@@ -206,7 +204,7 @@ int *procEntryCalled;
/*======================================================================*
// The HDFProcNames array holds the names of the HDF entries. *
//======================================================================*/
-static char HDFProcNames[][40] = {
+/*static char HDFprocNames[][40] = {
"noName",
"noName",
"noName",
@@ -214,7 +212,7 @@ static char HDFProcNames[][40] = {
"noName",
#include "HDFentryNames.h"
"HDF_LAST_ENTRY"
-};
+};*/
/*=======================================================================
// NAME *
// HDFinitTrace_SDDF -- initalize HDF tracing with SDDF records *
@@ -675,7 +673,7 @@ void createHDFTraceDescriptor( int Inx )
char BUF1[256], BUF2[256] ;
int FAMILY;
strcpy( BUF2, "HDF ");
- strcat( BUF2, HDFProcNames[Inx] );
+ strcat( BUF2, HDFprocNames[Inx] );
strcat( BUF2, " Procedure");
strcpy( BUF1, BUF2 );
strcat( BUF1, " Trace");
@@ -826,4 +824,4 @@ void _hdfMiscDescriptor( void )
putBytes( recordBuffer, (unsigned) recordLength );
}
-/*#endif */ /* H5_HAVE_PABLO */
+#endif /* PCF_BUILD */