Commit Graph

9468 Commits

Author SHA1 Message Date
Albert Cheng
84bd65e8fc [svn-r12811] Purpose:
Bug fix.

Description:
AIX complained if some files are still open when MPI_Finalize is called,
so code called _exit without calling MPI_Finalize.  But in Linux hosts
with MPICH, the MPI processes terminated but the launch processes got
stuck waiting for those processes to end properly and they would hang
on forever.  As more tests ran, more processes got stuck.

Solution:
In order to please both AIX and MPICH, the MPI file handles are retrieved
and closed outside of the HDF5 library, then call MPI_Finalize and then
_exit.

Tested:
in heping and copper.
2006-10-24 19:09:25 -05:00
Albert Cheng
2104bb380d [svn-r12809] Purpose:
Bug fix.

Description:
H5FD_get_vfd_handle() would return okay even if an VFD did not have the
get_vfd_handle callback function defined.

Solution:
Return failure if get_vfd_handle function is not defined.

Tested:
in heping and copper.
2006-10-24 19:02:56 -05:00
Elena Pourmal
5975624f97 [svn-r12808] Fixed a few typos in the recent changes to support g95 that were exposed on Windows.
Platforms tested: Those were changes to the Windows related code only; will be tested
                  by windows daily tests.
2006-10-24 13:52:05 -05:00
MuQun Yang
fbe677a029 [svn-r12807] Need to add another dependency for windows. 2006-10-24 12:16:16 -05:00
Quincey Koziol
5032b2e7df [svn-r12806] Description:
Reduce memory usage for common cases of I/O pipeline filter memory usage.

    Also, clean up some more code...

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-10-23 19:16:49 -05:00
Quincey Koziol
45ac464161 [svn-r12805] Description:
Fix off-by-one memory error when retrieving I/O pipeline filter's name.

Tested on:
    Linux/64 2.4 (mir)
    FreeBSD/32 4.11 (sleipnir)
2006-10-23 17:21:23 -05:00
MuQun Yang
ec74fa4bea [svn-r12804] Missing an argument(fapl) for a routine that tests the existence of szip encoder.
Windows picked this up. Tested with VS 6.0 with szip enabled.
2006-10-23 16:51:06 -05:00
Quincey Koziol
e40557304f [svn-r12803] Description:
Finish new version of the I/O pipeline message, which is much smaller than
the previous version.  This version is used with the "use the latest version
of the format" flag.

    Closed several memory leaks/overruns (found with valgrind).

    Also, lots of compiler & formatting cleanups.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-10-23 15:40:14 -05:00
Quincey Koziol
1062b4f9d7 [svn-r12802] Description:
Clean up code in passing...

Tested on:
    Linux/32 2.4 (heping)
    Linux/64 2.4 (mir)
    FreeBSD/32 4.11(sleipnir)
    Mac OS/32 10.4.8 (amazon)
2006-10-23 10:03:15 -05:00
Quincey Koziol
1202e83013 [svn-r12801] Description:
Fix several errors in the "latest version" of the object header format
changes and enable the new version when requested now.

    Clean up several confusing or duplicated sections of code.

Tested on:
    Linux/32 2.4 (heping)
    Linux/64 2.4 (mir)
    FreeBSD/32 4.11 (sleipnir)
2006-10-23 05:15:52 -05:00
Binh-Minh Ribler
8ee7c55fea [svn-r12799] Purpose: Fixed typo
Description:
    Removed a leftover prototype.

Platform tested:
    Linux 2.6 (kagiso) - very minor
2006-10-22 03:54:04 -05:00
Binh-Minh Ribler
22023b1e9f [svn-r12797] Purpose: Adding test
Description:
    Added trefer.cpp to c++/test.

Platform tested:
    ran bin/chkmanifest
2006-10-22 03:29:46 -05:00
Binh-Minh Ribler
fdd56729be [svn-r12796] Purpose: Adding test
Description:
    Wrappers of H5Rcreate had incorrect prototypes.  Fixed and added
    object reference tests.

Platform tested:
    Linux 2.4 (heping)
    AIX 5.1 (copper)
    SunOS 5.8 64-bit (sol)
2006-10-22 03:24:24 -05:00
Binh-Minh Ribler
daa61b5986 [svn-r12795] Purpose: Fixing bug
Description:
    Wrappers of H5Rcreate had incorrect prototypes.

Solution:
    Added these overloaded functions for H5Rcreate wrapper to IdComponent:
        void reference(void* ref, const char* name, DataSpace& dataspace,
                        H5R_type_t ref_type = H5R_DATASET_REGION) const;
        void reference(void* ref, const char* name) const;
        void reference(void* ref, const H5std_string& name) const;

    Added these overloaded functions for H5Rdereference:
        void dereference(IdComponent& obj, void* ref);
        DataSet(IdComponent& obj, void* ref);
        Group(IdComponent& obj, void* ref);
        DataType(IdComponent& obj, void* ref);

    The incorrect wrappers will be removed after announcing.

Platform tested:
    Linux 2.4 (heping)
    AIX 5.1 (copper)
    SunOS 5.8 64-bit (sol)
2006-10-22 03:22:30 -05:00
Pedro Vicente Nunes
118b1d38fa [svn-r12794]
1. bug fix. the h5_cleanup file names were not build properly on the h5repacktest call
2. added only a call to test_bigout.h5 to be clean, because the other files are generated anyway  by the shell script. test_bigout.h5  is only made on the C program part (h5repacktst)
2006-10-20 14:33:16 -05:00
Pedro Vicente Nunes
df803f78d0 [svn-r12793] 1. fix a compiling error in atlantia
2. added the test library delete framework to delete output .h5 files
3. cleaned warnings
2006-10-20 13:45:17 -05:00
James Laird
14c697f7e4 [svn-r12792] Fixed a Makefile.am to clean up a test file generated by the Packet Table
compression test.

Tested that the file is removed on juniper and heping.

Running reconfigure also regenerated the H5E* files (I think this means
somebody updated these files but didn't run reconfigure).
2006-10-20 13:10:53 -05:00
MuQun Yang
db3c44c6d6 [svn-r12791] Change stattest.bat to stattest.BAT.
Windows is not case sensitive but Unix is.
2006-10-20 09:47:21 -05:00
MuQun Yang
5d1ebe6b0a [svn-r12790] Add a new batch file to test h5stat.
Update repacktest.bat for the new h5repack test.
Update tooltest.bat to include h5stat test.
2006-10-19 20:43:43 -05:00
MuQun Yang
2a973f740a [svn-r12789] Add a new windows test batch file(stattest.bat) to test h5stat on windows. 2006-10-19 20:40:25 -05:00
Raymond Lu
15135723d6 [svn-r12788] Enable the algorithm of Direct driver to read data in fragment from file. If the application
requests large data from file, to avoid using too much of memory for copying data from library's 
own aligned buffer to application's (unaligned) buffer, this step is done in fragment.  The next
step checkin is to handle writing data in fragment.
2006-10-19 17:35:45 -05:00
James Laird
4c8e9ca848 [svn-r12787] Fix some references to Variable-length packet table functions.
For some reason, only Visual Studio DLLs complained about these.

Current code compiles for me under Visual Studio and generates no related
warnings on juniper.
2006-10-19 15:10:19 -05:00
Pedro Vicente Nunes
e925ba26bb [svn-r12786]
a more improved usage message, specially on the filter and layout
information
2006-10-19 14:48:42 -05:00
Pedro Vicente Nunes
06a2780901 [svn-r12785]
added a new much more readable usage message
2006-10-19 13:50:37 -05:00
Pedro Vicente Nunes
a1edc70691 [svn-r12784]
Fixes for bugs 676, 228

676: both h5repack and h5diff use H5Dread. In the case of a "big"
dataset, use read/write by hyperslabs the same way h5dump uses. An
arbitrary value of 1GB was defined for "big", i.e, if the dataset is
greater than 1GB, then read/write by hyperslabs

228: use the file type in read/write by default. A new switch -n was
introduced if the user wants to use a native type, which was the
previous use by default.

Added a new test for h5repack that repacks a 1GB dataset

Tested: heping (serial, parallel), sol, copper
2006-10-19 12:07:26 -05:00
Raymond Lu
78a3d673e6 [svn-r12783] Took out the function H5FD_direct_alloc that was added yesterday. This function would be redundant
because the allocation function in H5FD.c H5FD_real_alloc actually has handled the aligned 
allocation.
2006-10-19 10:12:23 -05:00
Elena Pourmal
ef778326fd [svn-r12778] Multi file driver test fails.
Skipped until fix is found.

Tested on heping with pgf90.

Note:  Logic was wrong; as a result, the test was bypassed for all 
compilers except those (like Intel) that understand !DEC compiler directive. 

I confirmed that the test fails on heping with pgf90. The symptoms are the same:
1.6.5 h5dump can read multi files created by fortran test, 
but built h5dump fails with internal error.

 --This line, and those below, will be ignored--

M    test/fortranlib_test.f90
2006-10-18 21:07:16 -05:00
Raymond Lu
5e4114b908 [svn-r12777] Added support to aligned file space allocation. The alignment should be set through
H5Pset_alignment.
2006-10-18 16:42:32 -05:00
Raymond Lu
4d32eb160b [svn-r12776] The internal change is to make the 3 parameters of H5Pset_fapl_direct be a structure and passed
through driver info functions in H5FD_direct_open, H5FD_direct_read, and H5FD_direct_write.  The
external change is to add a new API function H5Pget_fapl_direct to query 3 control values, the
memory boundary, file system block size, and the maximal buffer size for copying data.
2006-10-18 15:20:32 -05:00
James Laird
d4daafbc85 [svn-r12775] Fixed HL C++ errors from removing VL packet table. Silly me for
omitting the C++ test in the first place!

Tested on heping (with --enable-cxx!).
2006-10-18 12:56:33 -05:00
John Mainzer
2d6bb59329 [svn-r12774] Modified flush code in the metadata cache to allow it to
handle flush callbacks which can dirty other entries, and
resize and/or rename the target entry.

This feature is needed by the fractal heap code.

Also added associated test code.


H5Commit tested.  Test failed on heping, but the 
error appears to be a syntax error in an un-related
file.

Tests on copper & sol passed, along with tests on 
phoenix.
2006-10-18 05:51:26 -05:00
James Laird
ce30ee9b28 [svn-r12773] Removed Variable-length packet tables from the HL libraries.
This is a quick change to make sure nothing breaks; VL functions in
the header files have been #ifdef'd out.

Tested on mir.
2006-10-17 16:19:11 -05:00
Pedro Vicente Nunes
2d586abc27 [svn-r12772]
added more tests for h5copy (compressed datasets, vl named datatypes )
2006-10-17 15:59:10 -05:00
Quincey Koziol
3a2bcc84ac [svn-r12771] Description:
More fixes to make the I/O & memory operations more efficient when loading
& flushing object header chunks.

    Add in concept of a chunk having a "gap" at the end - unused space that is
not large enough to hold a full null message that describes it.

    Clean up formatting a bit.

    Latest version of object header format not enabled yet, still working on a
few bugs...

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-10-17 15:36:15 -05:00
Quincey Koziol
f7a8a14bfd [svn-r12770] Description:
Overhaul usage of object header chunks to reduce I/O operations and
memory allocations.  The object header prefix is now stored in the first
object header chunk's "image" in memory.

    Also, lots of formatting cleanups.

    Taught h5debug tool about new object header format (which isn't enabled
just yet).

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-10-16 18:04:45 -05:00
Quincey Koziol
a504b0dcc3 [svn-r12769] Description:
Move object header creation past several internal possibilities for
errors, making the routine more resistant to errors encountered.

    Also, various formatting/compiler warning cleanups.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-10-16 18:02:03 -05:00
Quincey Koziol
16a95636a3 [svn-r12768] Description:
Add 'initval' parameter to "lookup3" checksum routine (and implicitly to
the metadata checksum routine), to allow chaining several checksums together
easily (which isn't used by these modules, but will be used in my next checkin)

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-10-16 17:57:56 -05:00
Quincey Koziol
84bf19bec4 [svn-r12767] Description:
Code cleanup to improve formatting & reduce compiler warnings.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-10-16 17:53:56 -05:00
Raymond Lu
775bd09974 [svn-r12766] Made two changes to Direct I/O VFD: first added 3 parameters to H5Pset_fapl_direct to control
memory boundary, file block size, and maximal copy buffer size; second in H5FD_direct_write and
H5FD_direct_read, the library checks whether data buffer is aligned.  If it is, then write and 
read the data directly instead of making a copy buffer.
2006-10-16 17:31:27 -05:00
Elena Pourmal
caf3fa51d8 [svn-r12765] Description:
Daily tests failed for Absoft f95 compiler

Solution:
	Failure was due to several typos in H5f90prpto.h file; fixed
	I also removed redundant flags from the configration files.

Platforms tested: heping with f95, g95, pgf90; pommier with f95
2006-10-16 17:24:33 -05:00
Pedro Vicente Nunes
c00121ce00 [svn-r12764]
put the H5LTcreate_compound_type function inside the 
#ifdef NOT_YET
macro

meaning that the function is not used by us
2006-10-16 16:20:05 -05:00
Pedro Vicente Nunes
3300d035b0 [svn-r12763]
removed the function H5LTcreate_compound_type from the source directory.
this function was not being used. when it was written, it was meant to be an auxiliary function to be used on the table api, but it never had an usage

commented the H5LTrepack function with the 
#ifdef NOT_YET
macro

it is also not being used
2006-10-16 12:51:21 -05:00
Pedro Vicente Nunes
6a35d4c306 [svn-r12762]
rewrote the -b option to make it more clear
2006-10-16 11:53:51 -05:00
Quincey Koziol
9848ea0387 [svn-r12761] Description:
Refactor object header macros, in preparation for updating the format.

Tested on:
    Mac OS/PPC 10.4.8 (amazon)
    FreeBSD/32 4.11 (sleipnir) w/thread-safe
    Linux/32 2.4 (heping) w/C++ & FORTRAN
    Linux/64 2.4 (mir) w/1.6 compat & build-all
2006-10-16 09:46:00 -05:00
Quincey Koziol
10e8a68a0c [svn-r12760] Description:
Speculatively attempt to read in the entire first chunk in object header
with the object header prefix.  If successful (which it is most of the time),
this reduces by 1 the # of I/Os required to read in the object header.  Since
the object header typically was taking 2 I/Os, this should cut the number of
I/O operations when opening an object's header in half.

Tested on:
    FreeBSD/32 4.11 (sleipnir) w/threadsafe
    Linux/32 2.4 (heping) w/C++ & FORTRAN
2006-10-15 23:30:07 -05:00
Quincey Koziol
2374bb1012 [svn-r12759] Description:
Fix errors with check-vfd and recent modifications to tests.

Tested on:
    Linux/64 2.4 (mir) w/check-vfd
2006-10-13 12:16:07 -05:00
Elena Pourmal
7ff0e2eacd [svn-r12758] Description: Maintenenace for VMS
Solution: Added new library files to the compilation script

Platforms tested: VMS server at Boeing
2006-10-13 09:21:53 -05:00
Quincey Koziol
6716ae8429 [svn-r12756] Description:
Clean up some object header code in advance of more major changes in the
near future.

    Fix small initialization error in attribute message name buffer copy.

    Tweak down the default # of messages for new object headers.

Tested on:
    FreeBSD/32 4.11 (sleipnir) w/threadsafe
    Linux/32 2.4 (heping) w/FORTRAN & C++
    Mac OS/32 10.4.8 (amazon)
2006-10-12 13:42:02 -05:00
Raymond Lu
7da414109c [svn-r12755] The line "#define _XOPEN_SOURCE 600" is recommended for posix_memalign function but causes compiling
error on copper.  Comment it out.  It only gives a warning on SGI Altix.
2006-10-12 13:35:44 -05:00
James Laird
17a40b2b72 [svn-r12753] Added 1.6 compatibility support for packet table test.
Tested on mir.
2006-10-12 13:23:39 -05:00