diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2003-05-08 18:50:14 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2003-05-08 18:50:14 (GMT) |
commit | 4d9ea22570af3b919eba33f96182babdfed2cc08 (patch) | |
tree | b1a6b13a93fc2e2fc3c13e63c3edbc4f44f4f474 /test | |
parent | 864d07f7804e41abfeacd578509931f2ce10719e (diff) | |
download | hdf5-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:
Diffstat (limited to 'test')
-rw-r--r-- | test/h5test.c | 19 |
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 |