Commit Graph

8047 Commits

Author SHA1 Message Date
Fang Guo
16dd775f8f [svn-r11288] Purpose:
Maintenance on Windows
Description:
Move Win32 Macros(snprintf and vsnprintf) to the right places
Solution:

Platforms tested:
MSVS 6.0 on Windows XP
heping
Misc. update:
2005-08-22 14:03:00 -05:00
Fang Guo
7cd3b94df2 [svn-r11287] Purpose:
Maintenance on Windows
Description:
Fix typoes
H5_HAVE__SNPRINTF should be H5_HAVE_SNPRINTF
Solution:

Platforms tested:

Misc. update:
2005-08-22 13:57:50 -05:00
Albert Cheng
80a9a3df0c [svn-r11286] Purpose:
bug fix

Description:
The set of h5diffdebugN macros that printed nothing did not have
the proper number of parameters.  Some compilers (gcc) did not
like it.

Solution:
Fixed them to have the matching number of parameters.

Platforms tested:
heping pp (using both mpich-icc and mpich-gcc), modi4 pp.
2005-08-22 10:55:54 -05:00
Quincey Koziol
b7d43b0cf0 [svn-r11283] Purpose:
Code cleanup

Description:
    Clean up code somewhat:
        - Move from HDmemset() -> H5G_ent_reset() to clear out group entry info
        - Simplify H5G_unlink() call
        - Use portability macros instead of direct system calls in more places
        - Improve readbility by neatening whitespace, etc.
        - Move some macros into source code module instead of header files

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Linux 2.4
2005-08-20 14:28:40 -05:00
Quincey Koziol
96b3c145b7 [svn-r11282] Purpose:
New debugging feature

Description:
    Add some code to track where memory from the internal free list allocator
is allocated within the library.  It's not quite ready for "prime time" yet,
but it's close enough to be useful.

    This is disabled by default and requires the H5FL_TRACK macro in
src/H5FLprivate.h to be uncommented to activate during debugging.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Linux 2.4
    Too minor to require full h5committest
2005-08-20 13:09:28 -05:00
Quincey Koziol
d29082f165 [svn-r11280] Purpose:
Code cleanup

Description:
    Clean up unused variables & use portability macros better

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-08-20 12:49:41 -05:00
Quincey Koziol
a0530d368b [svn-r11277] Purpose:
Bug fix

Description:
    Fix core dump when checking whether to invalidate the name of an object
when unlinking an object in a group opened through an object reference.

Solution:
    Check if names of various objects are valid before comparing them, etc.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-08-20 11:32:55 -05:00
Quincey Koziol
eec442a8f6 [svn-r11276] Purpose:
Code cleanup/bug fix

Description:
    Add missing files to manifest

    Remove C++ style single-line comment from recent checkin and also re-indent
in a few places.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/thread-safe
    Not configured w/h5committest
2005-08-20 10:45:13 -05:00
Albert Cheng
20c9e7bc06 [svn-r11275] Purpose:
cleanup

Description:
Disable the debug printout.

Platforms tested:
heping pp.

Misc. update:
2005-08-20 10:15:25 -05:00
Binh-Minh Ribler
96e92e0a4c [svn-r11274] Purpose: Additional code improvement
Description:
    Forgot to modify the examples for the "using" declaration changes
    in the library.  Added "using" declaration appropriately.

Platforms tested:
    Linux 2.4 (heping) - very minor
2005-08-19 17:12:22 -05:00
Fang Guo
3ca7a17507 [svn-r11273] Purpose:
Maintenance
Description:
Update workspace and solution file
Solution:

Platforms tested:
MSVS 6.0 on windows
Misc. update:
2005-08-19 15:28:28 -05:00
Fang Guo
0436e6bc45 [svn-r11272] Purpose:
Improvement
Description:
Documentation for installing HDF5 on Cywin
Solution:

Platforms tested:

Misc. update:
2005-08-19 15:15:36 -05:00
Fang Guo
a1e557eae3 [svn-r11271] Purpose:
Maintenance
Description:
Add some comments for future thread safe use on windows
Solution:

Platforms tested:

Misc. update:
2005-08-19 15:12:22 -05:00
Fang Guo
1e0b7c4021 [svn-r11270] Purpose:
Improvement on windows
Description:
Add Thread safe project file with pthread-win32 on Windows
Solution:

Platforms tested:
MSVS 6.0 on Windows XP
Misc. update:
2005-08-19 15:08:23 -05:00
Fang Guo
1cc00ac662 [svn-r11269] Purpose:
Improvement
Description:
ttsafe cancel failed on Windows because pthread mutex and cond are not initialized
Add some assertion statements to locate the errors when they happen
Solution:

Initialize pthread mutex and cond to the default attributes.

Platforms tested:
MSVS 6.0 on windows XP and heping(with pthread)
Misc. update:
2005-08-19 15:06:26 -05:00
Fang Guo
6b181e28a8 [svn-r11268] Purpose:
Improvement
Description:
Add some assertion statements to locate the errors when they happen
Solution:

Platforms tested:
MSVS 6.0 on windows and heping(with pthread)
Misc. update:
2005-08-19 15:01:41 -05:00
Fang Guo
9498eb1770 [svn-r11267] Purpose:
Improvement
Description:
Add some assertion statements to locate the error when errors happen
Solution:

Platforms tested:
MSVS 6.0 on windows XP and heping(enable threadsafe with pthread)
Misc. update:
2005-08-19 15:00:17 -05:00
MuQun Yang
8efd4418b0 [svn-r11266] Purpose:
Add more comments for collective chunk IO supports.
Description:
On some platforms that use mpich library internally, we have no way to check mpich version number. We have to manually turn off the collective IO supports.
One example is Altix(cobalt). Just put a comment there so that we won't forget about this.

Solution:

Platforms tested:

Misc. update:
2005-08-19 14:39:30 -05:00
Albert Cheng
592cd4d723 [svn-r11265] Purpose:
New feature

Description:
All datasets were 1D only before.  Added -g to use 2D datasets such
that it allows more options in testing various access patterns.

Platforms tested:
heping pp.

Misc. update:
2005-08-19 09:24:21 -05:00
Binh-Minh Ribler
6496413284 [svn-r11264] Purpose: Additional code improvement
Description:
    Used "using" declaration and directive better to reduce namespace
    pollution.

Platforms tested:
    Linux 2.4 (heping)
    SunOS 5.8 64-bit (sol)
2005-08-18 17:16:56 -05:00
Albert Cheng
f27f7c7821 [svn-r11263] Purpose:
Bug fix.

Description:
Fixed ph5diff Bugs that hanged the last test.

Tested in heping and copper in pp mode.
2005-08-18 14:37:32 -05:00
Albert Cheng
34ce02937f [svn-r11262] Purpose:
Bug fix.

Description:
Added filtering of h5diff debug output.
Restored the skipped test to be tested again.
2005-08-18 14:36:22 -05:00
Albert Cheng
9baadd2df5 [svn-r11261] Purpose:
Feature and bug patch

Description:
Added the SKIP feature which skips a test.

The latest code will hang the very last test.  Skip that test for now.

Platforms tested:
heping pp.
2005-08-17 23:32:15 -05:00
Raymond Lu
7a30bcece9 [svn-r11260] Purpose: Bug fix
Description: repart_test.c was mistakenly treated as a tool, instead of a test program.

Solution: Took it out of the tool list.

Platforms tested: fuss - simple change.
2005-08-17 15:49:43 -05:00
Albert Cheng
7bbea13711 [svn-r11259] Purpose:
Bug fix

Description:
ph5diff had been hanging in Tflops.  Found out that vsnprintf ph5diff
uses was a local coded that did not limit printing according to the size
argument.  That resulted in buffer overflow and other problems.

Solution:
Added some sort of size checking in the home-grown vsnprintf and
had ph5diff checked for error return of vsnprintf.  Leon also
revamped the ph5diff manager's way of handling communications with
the workers.  That eliminated all but the last case of hanging.

Platforms tested:
Tflops.

Misc. update:
2005-08-17 14:21:36 -05:00
Albert Cheng
918c992dea [svn-r11258] Purpose:
Bug fix.

Description:
Reactivated the code for snprintf and vsnprintf for Tflops but added
the SN_SIZ_MIN as an attempt to require the minimum amount of space needed,
hoping vsnprintf/snprintf do not print larger than it per request.
Also added code to detect overflow and return error (IF overflow has
not crashed the application yet.)  These are all short term patches.

Platforms tested:
Tested at Tflops.
2005-08-17 13:40:41 -05:00
Albert Cheng
e5022d40a8 [svn-r11257] Purpose:
Update & feature

Added a new cached data conversion setting.

Added -DH5_FLOPS to CPPFLAGS for compiling.  Had used the builtin
__PUMAGON__ but H5_TFLOPS is more meaningful.

Platforms tested:
Tested in Flops.

Misc. update:
2005-08-17 13:35:29 -05:00
Raymond Lu
dd40269cc8 [svn-r11256] Purpose: Reformat comment.
Platforms tested: Not needed.
2005-08-17 10:43:22 -05:00
Raymond Lu
dc2bc37c39 [svn-r11254] Purpose: Bug fix
Description:  In some macro definition, some constant values like D_MIN and D_MAX were
not casted to the destination type.  They may cause problems for some system like
TFLOPS.

Solution: Cast them to destination type.

Platforms tested: fuss - very simple changes.
2005-08-17 10:05:08 -05:00
Albert Cheng
7e33c92e6b [svn-r11252] Purpose:
Fixed a typo--osf1 was spelled as osfl.

Platforms tested:
Tflops.
2005-08-16 15:56:59 -05:00
Fang Guo
778c6a053d [svn-r11251] Purpose:
Maintenance on windows
Description:
Add two macros for windows, susbstitue functions HDsnprintf and HDvsnprintf
with  _snprintf and _vsnprintf when using Visual C++ on windows

Solution:

Platforms tested:
MSVC 6.0 on Windows XP
heping
Misc. update:
2005-08-16 12:24:04 -05:00
Fang Guo
3bf0e04aa3 [svn-r11250] Purpose:
Maintenance on Windows
Description:
Add #define H5_HAVE_TMPFILE
Solution:

Platforms tested:

Misc. update:
2005-08-15 17:55:29 -05:00
Quincey Koziol
94d21eed9f [svn-r11248] Purpose:
Code cleanup

Description:
    Fix minor difference in datatype conversion exception callback routine.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/C++
2005-08-15 09:24:16 -05:00
Quincey Koziol
6b45f5172c [svn-r11245] Purpose:
Code cleanup

Description:
    Trim trailing whitespace, which is making 'diff'ing the two branches
difficult.

Solution:
    Ran this script in each directory:

foreach f (*.[ch] *.cpp)
    sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f
end


Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-08-13 15:53:35 -05:00
Quincey Koziol
6562465a2c [svn-r11243] Purpose:
Code cleanup

Description:
    Collapse the various tests on groups opened by dereferencing into one test.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-08-13 14:27:39 -05:00
Quincey Koziol
0db530ac5a [svn-r11242] Purpose:
Code cleanup

Description:
    Use enum type instead of int for datatype conversion exception callback
routine.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-08-13 14:18:02 -05:00
Quincey Koziol
45f1eba213 [svn-r11241] Purpose:
Code cleanup

Description:
    Fix logic error in previous checkin and also finish refactoring I/O
initialization, including simplifying all the collective & parallel cases
into a more unified mechanism.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/ & w/o parallel
    Linux 2.4 (mir)
2005-08-13 13:09:57 -05:00
Quincey Koziol
2efc3027ec [svn-r11240] Purpose:
Bug fix

Description:
    Fix logic error for non-parallel file I/O with library built for parallel
I/O capability.

Platforms tested:
    Linux 2.4 (mir) w/parallel
2005-08-13 11:00:28 -05:00
Albert Cheng
8673333c95 [svn-r11238] Purpose:
Updated for the added feature of standalone build for h5perf.
2005-08-13 10:46:03 -05:00
Albert Cheng
52cfa98120 [svn-r11237] Purpose:
New Feature.

Description:
Added code and changes so that h5perf (pio) can be built by
standalone mode (that is built by just "h5pcc" without all these
internal files.)  With the standalone mode, h5perf can be built
against different versions of hdf5 library and to contrast the
performance among them.
(Note that pio_standalone.c and pio_standalone.h are used in
standalone build only.)


Platforms tested:
Tested in copper and heping.
2005-08-13 10:21:22 -05:00
Quincey Koziol
c5aa1f7a5f [svn-r11236] Purpose:
Code cleanup & bug fix

Description:
    Refactor recent collective chunk changes to simplify them.  Also, compute
the number of chunks by checking the number of objects in the chunk skip list
instead of getting the boundaries of the selection and counting the chunks that
it overlaps, which is faster and computes correct number for certain selections.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/parallel
    Too minor to require h5committest
2005-08-12 22:09:38 -05:00
Quincey Koziol
1ba06a8395 [svn-r11235] Purpose:
Code cleanup

Description:
    Refactor, simplify and cleanup Kent's recent checking for collective
chunk I/O.  There's a bug that I need to talk to Kent about and some more
cleanups still, but this is reasonable for an interim point.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/parallel
    Too minor for h5committest
2005-08-12 10:53:55 -05:00
Albert Cheng
1af1bd5fb3 [svn-r11234] Purpose:
bug fix.

Description:
The code for functions snprintf and vsnprintf ignored the size parameter.
It could overflow the buffer.  The two functions are supported by many
platforms now.  Disable the code and see what platform(s) still need
it.

Platforms tested:
h5committested

Misc. update:
2005-08-11 18:52:00 -05:00
Raymond Lu
39da36afe5 [svn-r11233] Purpose: Bug fix
Description: In the macro H5T_CONV_Xx_CORE definition, one line said
"} else if (*((ST*)S) < (D_MIN)) {".  It caused problem on TFLOPS because
it defines LLONG_MIN as a hexadecimal value instead of decimal value.

Solution:  Changed the line to "} else if (*((ST*)S) < (DT)(D_MIN)) {" to
avoid the problem.  (Need to change other similar places when time permits.)

Platforms tested: fuss - simple change.
2005-08-11 17:45:42 -05:00
MuQun Yang
cf377ac318 [svn-r11232] Purpose:
Modified collective chunk Io test
Description:
One test(collective chunk IO test 4) is no longer needed. Comment out first.

The code should be cleaned up later.

Solution:

Platforms tested:

Misc. update:
2005-08-11 13:49:15 -05:00
MuQun Yang
870c5b2f66 [svn-r11231] Purpose:
bug fix for collective chunk IO, phase 1
Optimization hasn't been done yet, the collective chunk IO bug should be fixed.
Description:
In chunking storage, memory space and file space will be remapped, So to check
whether file space and memory space are regular in order to use optimized MPI derived
datatype for collective call one has to check per-chunk wise instead of per hyperslab wise.
Even a regular memory space will be stored in span-tree and will be irregular before chunk IO.

Solution:
1. Check file space and memory space per chunk wise instead of per hyperslab wise.
2. For collective IO mode, number of chunks covered by hyperslab may be different. Since we are
handing per chunk per IO, for the extra chunk IO for some(not all) processors, collective mode will
cause program hanged. So for the extra chunk Io mode independent IO has to be used.
3. On some platforms, Complex MPI derived datatype is not working, so we have to use independent IO for collective IO mode if the selection is irregular. However, when the selection is regular, we do want to use collective IO since that will improve performance. Special cares have to be added for this case.


Platforms tested:
copper(AIX 5.1) Linux(heping mpich 1.2.6), Teragrid machine, Cobalt(altix), modi4

Misc. update:
2005-08-11 13:48:09 -05:00
Quincey Koziol
0e1b41d0fd [svn-r11229] Purpose:
Big fix

Description:
    A group opened by dereferencing a object reference would not work for
H5Giterate(), due to the local heap & B-tree information not being cached.

Solution:
    Get the local heap & B-tree info & point to that structure instead of
the group entry for the group.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-08-10 15:28:32 -05:00
Quincey Koziol
a8fbde5d18 [svn-r11228] Purpose:
Code cleanup

Description:
    Add a check for the correct type of ID for H5Eclose_stack()

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-08-10 15:18:49 -05:00
Raymond Lu
108a61528a [svn-r11226] Purpose: Bug fix.
Description:  The change made yesterday regarding repart_test.c wasn't right.

Solution:  Roll back to v1.6 until a solution is figured out.

Platforms tested: fuss - simple change.
2005-08-09 13:07:39 -05:00
Fang Guo
0a2e76ff1e [svn-r11225] Purpose:
Maintenance on windows
Description:
Update solution file to include newly added files
Solution:

Platforms tested:

Misc. update:
2005-08-09 13:07:07 -05:00