Commit Graph

9180 Commits

Author SHA1 Message Date
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
Elena Pourmal
65a1c88821 [svn-r12752] Descripton: This is a port to G95 compiler for MAC OSX and AIX 5.2
Previous implementation failed to compile on MAC OS X Tiger 10.4 and AIX 5.2

In previous implementation, each overloaded Fortran function called the same
C function. Since declaration of parameters in INTERFACE block for
C Function differed, some compilers issued warnings but g95 on MAC and AIX
failed to compile.

Solution: Add C wrappers corresponding to each overloaded Fortran function
to call C stub function. This fix should also reduce number of warnings
on IRIX systems.

Platforms tested:  MAC OS and AIX 5.2 (copper) with g95;
                   sol (with Sun compilers), heping with PGI compilers
2006-10-11 22:59:18 -05:00
Albert Cheng
e065eee4a8 [svn-r12751] Purpose:
Bug fix (related to 544)

Description:
h5_get_file_size() was coded to return 0 if failed but
file size can be 0.  Changed the failure return value to -1
which is allowed by the returned type of off_t which is a signed
type.
Also changed the checking code of the stat call to just == 0
since that is how it is defined.

Test:
Could test it in heping only.  Both Sol and Copper failed to
compiled due to error in the Direct IO VFD code.
2006-10-11 22:55:06 -05:00
Albert Cheng
9b24333b19 [svn-r12750] Purpose:
Bug Fix (Bug 544)

Description:
SGI Altix's MPI_File_get_size overflowed at 2GB and more.
Replaced h5_mpi_get_file_size calls by h5_get_file_size.

Tested:
Cobalt.
2006-10-11 21:12:24 -05:00
MuQun Yang
3cb353e883 [svn-r12748] _exit() function for Windows DLL cannot immediately terminate the calling process.
So new flush2 tests generates false failures for DLL version on windows.
Two cases of flush2 tests were skipped temporarily on windows. 
The inserted windows macros should be removed when a better solution is found.
Tested on vs6.0 and vs 7.1 and Linux.
2006-10-11 17:32:26 -05:00
Raymond Lu
c69d0bd40b [svn-r12747] Added a condition check to see if Direct I/o is enabled. 2006-10-11 16:57:18 -05:00
James Laird
c0712895d2 [svn-r12746] Changed Packet Table compression to what is hopefully a more portable test
(apparently, there are some systems for which compression makes things bigger
:/ ).

Tested on heping.
2006-10-11 16:25:50 -05:00
Raymond Lu
ed7ba34f1f [svn-r12743] Took out printout for driver information because the driver used can be different from the driver
used for standard output.
2006-10-11 10:21:10 -05:00
Raymond Lu
484ce75af4 [svn-r12742] Updated this output for a new driver "direct" has been added. 2006-10-11 09:58:55 -05:00
James Laird
de383a7edf [svn-r12741] Added support for direct I/O to check-vfd. The direct VFD is only tested
if it is enabled.

Added Direct VFD status to the configure summary.

Removed a line left over from pablo support.  Oops!
2006-10-10 15:47:24 -05:00
Quincey Koziol
c0c896e724 [svn-r12740] Description:
Update datasets and the layout, attributes and fill-value
object header messages to use the latest version
of the file format flag.

Tested  on:
    FreeBSD 4.11 (sleipnir)
    Linux/64 2.4 (mir)
    Linux/32 2.4 (heping)
2006-10-10 15:36:33 -05:00
Raymond Lu
65d30cc9c3 [svn-r12739] Added Direct I/O driver to VFD. It's only supported by SGI Altix (cobalt). There's a configure
option --enable-direct-vfd/--disable-direct-vfd to enable/disable Direct I/O support.  The default
is enabled.  There's a small test in test/vfd.c.  Another way to test it is to set environment
variable HDF5_DRIVER to "direct" and run "make check" in the test/ directory.  There'll be some
further improvement in the following checkin including allowing user to provide memory boundary
value, file block size, and copying buffer size.
2006-10-10 15:07:16 -05:00
Quincey Koziol
176f59f0f4 [svn-r12738] Description:
Tweak down some of the static array definitions for new & re-loaded object
header data structures, to reduce memory use in common cases.

Tested on:
    Linux/32 2.6 (chicago)
2006-10-10 14:41:37 -05:00
Quincey Koziol
14dcb6db33 [svn-r12736] Description:
Add "use the latest format" support for dataspace object header encode/
decode routines and clean up format a bit for the latest format (new to 1.8.x
releases)

    Remove storing 'perm' parameter for array datatypes in memory and the file,
and add test to make certain that if any user applications are attempting to
store them, we get some reports back.  (Should be unlikely, since the RefMan
says that the parameter is not implemented and is unsupported).
    Carry those changes into the tests, etc.

    Clean up a bunch more compiler warnings.

Tested on:
    FreeBSD/32 4.11 (sleipnir) w/threadsafe
    Linux/32 2.4 (heping) w/FORTRAN & C++
    Linux/64 2.4 (mir) w/enable-1.6-compat
2006-10-08 23:18:18 -05:00
Quincey Koziol
20720af231 [svn-r12735] Description:
Clean up some compiler warnings and resolve some inconsistenceis between
hsize_t and size_t in the interface.

Tested on:
    FreeBSD/32 4.11 (sleipnir) w/threadsafe
    Linux/32 2.4 (heping) w/FORTRAN & C++
    Linux/64 2.4 (mir) w/enable-1.6-compat
2006-10-08 23:14:29 -05:00
Quincey Koziol
25d1056dbf [svn-r12734] Description:
Clean up some compiler warnings.

Tested on:
    FreeBSD/32 4.11 (sleipnir) w/threadsafe
    Linux/32 2.4 (heping) w/FORTRAN & C++
    Linux/64 2.4 (mir) w/enable-1.6-compat
2006-10-08 22:51:03 -05:00
Quincey Koziol
6a18d20b40 [svn-r12733] Description:
Use calloc() instead of malloc(), in order to fail a bit more gracefully
on errors.

Tested on:
    FreeBSD/32 4.11 (sleipnir) w/threadsafe
    Linux/32 2.4 (heping) w/FORTRAN & C++
    Linux/64 2.4 (mir) w/enable-1.6-compat
2006-10-08 21:52:40 -05:00
Quincey Koziol
4ebe2f792b [svn-r12732] Description:
Fix error with passing in new root indirect block instead of NULL pointer
to protect of previous root direct block, when converting heap to use a root
indirect block.

Tested on:
    FreeBSD/32 4.11 (sleipnir) w/threadsafe
    Linux/32 2.4 (heping) w/FORTRAN & C++
    Linux/64 2.4 (mir) w/enable-1.6-compat
2006-10-08 21:51:48 -05:00
MuQun Yang
f372694841 [svn-r12731] Updating the batch file to reflect the recent change of h5repack tool. 2006-10-06 15:56:54 -05:00
MuQun Yang
df31eab474 [svn-r12730] Add _WIN32 macro since some windows applications need to use this macro rather than WIN32. 2006-10-06 15:12:44 -05:00
James Laird
953efd5c47 [svn-r12729] Skipped reserved test. Hopefully the test will be updated someday.
Tested on heping.
2006-10-06 12:38:42 -05:00
MuQun Yang
0f047c1cfe [svn-r12728] Updated windows installation documents to reflect the support of HDF5 on windows 64-bit platform. 2006-10-06 11:19:14 -05:00
MuQun Yang
081a9b37fd [svn-r12727] 1. Cleaning up the comments of the source code.
2. Using H5Dmpio_Debug macro to reflect the debugging information of new parallel IO supports.


They are very minor changes. Tested at heping. t_pflush2 failed. Others passed.
2006-10-06 11:18:22 -05:00
Pedro Vicente Nunes
af51ee1e00 [svn-r12726]
added calls for the scale offset filter to the h5repack test script
2006-10-06 10:41:30 -05:00
Albert Cheng
ad80fe7ea9 [svn-r12725] Purpose:
Bug Fix (Bug 544)

Description:
SGI Altix's MPI_File_get_size overflowed at 2GB and more.
Put in a temporary patch to use stat() instead to make Cobalt
passing on this test (bigdset).  A better fix (like detect if
MPI_File_get_size does not work before using this is preferred.)

Tested:
Cobalt and Heping.
2006-10-05 19:27:05 -05:00
James Laird
831be1cdff [svn-r12723] Fix a bug where return values were overwritten in H5F_dest, and another bug
exposed by that one in which closing a read/write file ID wouldn't flush the
cache if there was another file handle open.  This caused problems when the
second file handle was read-only; neither would actually flush the cache.

Now all read/write file handles flush the cache when the close, but only
when the file is going to be destroyed is the cache destroyed.  This way
read-only file handles keep the cache open but it is always clean.

Tested on mir, heping, sol, and copper (parallel)
2006-10-05 15:30:07 -05:00
Pedro Vicente Nunes
c13697362a [svn-r12722]
added new tests for h5copy script, generated in the test file generator program
2006-10-05 14:46:45 -05:00
Pedro Vicente Nunes
40250f05a3 [svn-r12721]
corrected commnet
2006-10-05 11:12:27 -05:00
Pedro Vicente Nunes
5df5ee8956 [svn-r12720]
added output of error messages using the tools library function error_msg, that prints the program name and error on the message

tested: kagiso
2006-10-05 09:35:40 -05:00
James Laird
4d8a0f4c54 [svn-r12719] Configured external links to (by default) use the FAPL of the parent
file, rather than H5P_DEFAULT.

This lets them be used with stdio and directio drivers.

Tested on mir and juniper (check-vfd takes a long time!).
2006-10-04 17:40:06 -05:00
Leon Arber
4dea870b6a [svn-r12718] Purpose: New Feature
Description: Add a new part to the flush test that checks to see what happens in case a file is flushed, and
	     then a new dataset is created and the program exits without flushing this subsequent dataset. 
	     The test verifies that, at the very least, the data written out before the H5Fflush call is correct.
2006-10-04 14:50:40 -05:00
Leon Arber
3ac3e03244 [svn-r12717] Purpose: Bug Fix
Description:
	It seems that, on AIX, calling MPI_Finalize without closing all files results in an error.
	This causes t_pflush1 to fail because the whole point of the test is to see what happens if you
	don't close a file.  Try getting rid of the call to MPI_Finalize to see if this will silence the error.

Tested:
	AIX (copper)
2006-10-03 19:36:04 -05:00
MuQun Yang
eff5e13304 [svn-r12716] updating library project files to reflect the recent addition of source code. 2006-10-03 18:09:24 -05:00
James Laird
e5f0444b3a [svn-r12715] Incorporated a user-submitted patch to better detect the 'tr' utility
and quote its arguments.  Also checks for the 'socket' library on
Solaris.

If this patch passes the Daily Tests and makes the user happy, I'll
port it back to the 1.6 branch.

Tested on mir and sol.
2006-10-03 17:41:34 -05:00
MuQun Yang
d2019d7c50 [svn-r12714] check in the new dataspace file 2006-10-03 13:44:10 -05:00
Pedro Vicente Nunes
e23d2acad8 [svn-r12713]
added new tests with different datatypes  for h5dump binary output

tested: kagiso
2006-10-03 11:33:55 -05:00
Quincey Koziol
16fe9dbb82 [svn-r12712] Description:
Finish 'use the latest version of the format' changes to the datatype
object header message.  Compound and enumerated types will now be encoded
more efficiently by packing the field names & member offsets better.

Tested on:
    Linux 2.6/32 (chicago)
    Linux 2.6/64 (chicago2)
2006-10-03 11:05:09 -05:00
Quincey Koziol
05429c6c6c [svn-r12711] Description:
Define 'TRUE' macro and remove dependency on h5test header/library.

Tested on:
    Linux/64 2.6 (chicago2) w/--enable-build-all
2006-10-03 10:48:22 -05:00
James Laird
858cbb7c09 [svn-r12710] Added an include for "h5test.h" to test/gen_new_group.c to fix a compilation
error.

Since this is a "gen" program that generates a test file, it isn't always
built.  Use ./configure --enable-build-all to test it.
2006-10-03 09:13:59 -05:00