summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2003-05-08 18:50:14 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2003-05-08 18:50:14 (GMT)
commit4d9ea22570af3b919eba33f96182babdfed2cc08 (patch)
treeb1a6b13a93fc2e2fc3c13e63c3edbc4f44f4f474
parent864d07f7804e41abfeacd578509931f2ce10719e (diff)
downloadhdf5-4d9ea22570af3b919eba33f96182babdfed2cc08.zip
hdf5-4d9ea22570af3b919eba33f96182babdfed2cc08.tar.gz
hdf5-4d9ea22570af3b919eba33f96182babdfed2cc08.tar.bz2
[svn-r6834] Purpose:
Feature change Description: HDF5_PARAPREFIX has been default to various values like /tmp, /var/tmp, ... None of these solve all problems and all of them created new problems. For LLNL GPFS, '.' is more appropriate since they can do the build right inside gpfs. Same for NCSA Copper. The special setting for Janus is still retained since that is a one of a kind machine and the uses could use all the help. Platforms tested: h5committested (using sol instead of arabica) plus eirene(pp). Misc. update:
-rw-r--r--test/h5test.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 1d82ddb..bb7853c 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -67,7 +67,7 @@
/* For the PFS of TFLOPS */
#define HDF5_PARAPREFIX "pfs:/pfs_grande/multi/tmp_1"
#else
-#define HDF5_PARAPREFIX "/tmp"
+#define HDF5_PARAPREFIX ""
#endif
#endif
char *paraprefix = NULL; /* for command line option para-prefix */
@@ -256,6 +256,10 @@ h5_reset(void)
*
* Albert Cheng, 2000-01-25
* Added prefix for parallel test files.
+ *
+ * Albert Cheng, 2003-05-08
+ * Changed the default parallel prefix back to NULL but added
+ * an explanation remark of $HDF5_PARAPREFIX.
*-------------------------------------------------------------------------
*/
char *
@@ -265,6 +269,7 @@ h5_fixname(const char *base_name, hid_t fapl, char *fullname, size_t size)
const char *suffix = ".h5"; /* suffix has default */
char *ptr, last = '\0';
size_t i, j;
+ static int HDF5_PARAPREFIX_explained=0;
hid_t driver=(-1);
if (!base_name || !fullname || size < 1)
@@ -290,11 +295,19 @@ h5_fixname(const char *base_name, hid_t fapl, char *fullname, size_t size)
* then try the constant
*/
prefix = (paraprefix ? paraprefix : getenv("HDF5_PARAPREFIX"));
-
+ if (!prefix && !HDF5_PARAPREFIX_explained){
+ printf("*** Remark ***\n"
+ "You can use environment variable HDF5_PARAPREFIX to "
+ "run parallel test files in a\n"
+ "different directory or to add file type prefix. E.g.,\n"
+ " HDF5_PARAPREFIX=pfs:/PFS/user/me\n"
+ " export HDF5_PARAPREFIX\n"
+ "*** End of Remark ***\n");
+ HDF5_PARAPREFIX_explained++;
#ifdef HDF5_PARAPREFIX
- if (!prefix)
prefix = HDF5_PARAPREFIX;
#endif /* HDF5_PARAPREFIX */
+ }
}else{
/* For serial:
* First use the environment variable, then try the constant