Commit Graph

11146 Commits

Author SHA1 Message Date
Pedro Vicente Nunes
358f18543f [svn-r16991] change messages of -c option
tested: windows, linux
2009-05-28 16:31:57 -05:00
Quincey Koziol
fc6f3e1650 [svn-r16986] Description:
Clean up formatting & error reporting.

Tested on:
    FreeBSD/32 6.3 (duty) in debug mode
    FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
    Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
        in debug mode
    Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
        w/szip filter, in production mode
    Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
        in production mode
    Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
    Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
    Mac OS X/32 10.5.6 (amazon) in debug mode
    Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
        in production mode
2009-05-27 13:08:46 -05:00
Quincey Koziol
f824891a84 [svn-r16982] Description:
Add library private routines to allow metadata cache entries to be set as
flush dependency children on extensible array entries.  This will allow chunk
proxies to be set as child flush dependencies for the extensible array, adding
another necessary layer to the flush dependency chain for SWMR access.

Tested on:
    FreeBSD/32 6.3 (duty) in debug mode
    FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
    Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
        in debug mode
    Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
        w/C++ & FORTRAN, in production mode
    Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
        w/szip filter, in production mode
    Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
        in production mode
    Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
    Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
    Mac OS X/32 10.5.6 (amazon) in debug mode
    Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
        in production mode
2009-05-26 17:42:12 -05:00
Scott Wegner
f4f4e98624 [svn-r16980] Purpose: Add new Windows def. for HDstroull, as the function isn't natively available.
Description:
Tests were failing for the HDF5 trunk on Windows because Windows does not provide the strtoul function.  However, there is a replacement, _strtoui64.  This definition has been added to the H5win32defs.h file, similar to other such replacement functions.

Tested:
VS2005 on Vista
h5committest
2009-05-22 14:37:53 -05:00
Quincey Koziol
eeae6b119a [svn-r16979] Description:
Refactor extensible array metadata lookup to abstract common code into
single, reusable routine.  Re-target existing 'set' & 'get' routines to use new
routine.

Tested on:
    FreeBSD/32 6.3 (duty) in debug mode
    FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
    Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
        in debug mode
    Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
        w/C++ & FORTRAN, in production mode
    Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
        w/szip filter, in production mode
    Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
        in production mode
    Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
    Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
    Mac OS X/32 10.5.6 (amazon) in debug mode
    Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
        in production mode
2009-05-21 18:20:05 -05:00
Quincey Koziol
865321a89d [svn-r16977] Description:
Correct error where data block was being marked dirty instead of index block.

Tested on:
    FreeBSD/32 6.3 (duty) in debug mode
    FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
    Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
        in debug mode
    Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
        w/C++ & FORTRAN, in production mode
    Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
        w/szip filter, in production mode
    Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
        in production mode
    Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
    Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
    Mac OS X/32 10.5.6 (amazon) in debug mode
    Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
        in production mode
2009-05-21 15:10:52 -05:00
Quincey Koziol
100ff923d9 [svn-r16973] Description:
Refactor chunk cache entry information to remove some [actually] unused
fields.

Tested on:
    FreeBSD/32 6.3 (duty) in debug mode
    FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
    Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
        in debug mode
    Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
        w/C++ & FORTRAN, in production mode
    Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
        w/szip filter, in production mode
    Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
        in production mode
    Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
    Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
    Mac OS X/32 10.5.6 (amazon) in debug mode
    Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
        in production mode
2009-05-21 13:46:33 -05:00
Allen Byrne
d2ef2af9b2 [svn-r16969] Updated perf_serial test to work on windows.
Tested:
Windows and h5committest
2009-05-21 10:40:03 -05:00
Pedro Vicente Nunes
b75740341f [svn-r16964] bug fix: the phrase "Not comparable" was not being printed for the case of different classes
tested: windows, linux
2009-05-20 09:07:22 -05:00
Raymond Lu
4a7834b7c7 [svn-r16955] Lifted the restrictions that major and minor errors must be in the same class.
Tested on jam - simple change.
2009-05-15 10:49:55 -05:00
Allen Byrne
06287443e4 [svn-r16952] corrected name of zlib in Section IV, part 3, step 2
Tested: windows
2009-05-15 10:17:36 -05:00
Pedro Vicente Nunes
8745d8b7cc [svn-r16947] 1. #1522 (B1) h5ltread_dataset_string_f error with g95
ISSUE: h5ltread_dataset_string_f causes library assertion with g95. 
SOLUTION: convert the fortran string buffer to a C buffer with HD5f2cstring, and pass this string to the C function
TEST: added a test call in the fortran test lite program
DOCS: added the note in RELEASE.txt "- Lite: the h5ltread_dataset_string_f and h5ltget_attribute_string_f functions had memory problems with the g95 fortran compiler. (PVN - 5/13/2009) 1522
2009-05-13 14:10:25 -05:00
Pedro Vicente Nunes
c7741d3537 [svn-r16945] bug fix. call free on a string allocated by HD5f2cstring
tested: linux, windows
2009-05-13 11:19:44 -05:00
Mike McGreevy
36431fa74c [svn-r16938] Purpose:
Modifying default cache configuration, and adding an #ifdef to allow for a 
    separate default configuration when parallel is enabled. This is being 
    modified in order to address an observed performance problem with the 
    current default configuration.

Description of Changes:

    - increasing maximum cache size from 16MB to 32MB
    - increasing maximum entry size from 10MB to 32MB
    - decreasing min_clean_fraction from 0.3 to 0.01 in serial case
    - increasing flash_multiple from 1.0 to 1.4 in serial case

Tested:
  
    jam
2009-05-12 17:07:21 -05:00
Quincey Koziol
2a3c76f685 [svn-r16897] Description:
Add basic support for using 'aprun' to run parallel commands, when on
a Cray.

Tested on:
	Cray @ LBL (franklin)
2009-04-29 21:40:32 -05:00
Christian Chilan
9e45b7d2d6 [svn-r16885] Update to include the modification in parallel tests. 2009-04-29 01:39:10 -05:00
Raymond Lu
71b49b0f9b [svn-r16880] Fixed a bug in H5LTtext_to_dtype. When the data type is enumerate and the super type is different from
the native integer, the value wasn't converted.  I fixed it and corrected the test, too.

Tested with h5committest.
2009-04-28 16:42:33 -05:00
Quincey Koziol
4d6fcb288a [svn-r16874] Description:
Add test for cache client 'notify' callback.

Tested on:
        FreeBSD/32 6.3 (duty) in debug mode
        FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
                                in debug mode
        Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
                                w/C++ & FORTRAN, in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                                w/szip filter, in production mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                                in production mode
        Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
        Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
        Mac OS X/32 10.5.6 (amazon) in debug mode
        Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
                                in production mode
2009-04-28 14:30:05 -05:00
Quincey Koziol
8ae072d760 [svn-r16869] Description:
Reduce overhead for func enter/leave & error handling macros.  (Reduces
object code size by ~20% for production/~10% for debug, with gcc)

Tested on:
    Mac OS X/32 10.5.6 (amazon)
    (Too minor to require h5committest)
2009-04-28 09:41:07 -05:00
Allen Byrne
808390dbd9 [svn-r16863] MS version of strtoull() is named strtoui64()
Tested:
   XP32 VS2005
2009-04-27 10:26:11 -05:00
Raymond Lu
cdcd4a7305 [svn-r16859] I fixed some memory leak of H5LTdtype_to_text in the HL library. I fixed some test
verification, too.

Tested on jam - simple change.
2009-04-24 16:13:20 -05:00
Quincey Koziol
8dd1e72365 [svn-r16858] Description:
Tweak down the size of datatype created for dataset, so that the
elements are a reasonable size and the dataset's size can fit into a 64-bit
value for storing in the file.

Tested on:
	FreeBSD/64 6.3 (liberty)
	(too minor for h5committest)
2009-04-24 15:39:00 -05:00
Quincey Koziol
d7d8cf1159 [svn-r16851] Description:
Clean up compiler warnings

Tested on:
    Mac OS X/32 10.5.6 (amazon)
    (too minor to require h5committest)
2009-04-23 17:55:18 -05:00
Quincey Koziol
b2df2fa677 [svn-r16849] Description:
Bring r16848 from revise_chunks branch to trunk:

	Add test (and bugfixes) for detecting if a filter makes a chunk size
larger than can be encoded in a 32-bit variable (in the file).

Tested on:
       FreeBSD/32 6.3 (duty) in debug mode
	(h5committest not needed, multi-platform testing done on branch)
2009-04-23 16:52:45 -05:00
Quincey Koziol
f098d20ab9 [svn-r16847] Description:
Bring r16846 from revise_chunks branch back to trunk:

	Fix broken (for how long?) H5_ASSIGN_OVERFLOW macro to actually detect
overflows during assignments, along with several errors it [now] detected.

	Cleaned up a fix minor warnings and/or pieces of code also.

Tested on:
	FreeBSD/32 6.3 (duty) in debug mode
	(h5committest not needed - multi-platform test performed on branch)
2009-04-23 13:25:16 -05:00
Quincey Koziol
b1f8b21130 [svn-r16845] Description:
Updated with new warning flags from gcc 4.4

Tested:
    FreeBSD/64 6.3 (liberty) w/gcc 4.4.0
2009-04-23 12:31:34 -05:00
Mike McGreevy
bfc195feba [svn-r16844] Description:
Adding dependency to h5repack test script.

    h5repack.sh needs h5repacktst to run first.

Tested:

    Problem only appeared on Glory, but tested the dependence
    manually on jam by trying to run only the script and checking
    that it first ran the h5repacktst test program.
2009-04-22 16:57:17 -05:00
Albert Cheng
08889823ea [svn-r16842] Bug fix:
If the AR command has embedded shell separators such as the case of
"AR =  ar -X 64", $AR ends up as a blank.

Solution:
Put quotes around the command substitution string to protect against embedded
separators. Applied the same to both AR and RANLIB assignments.

Tested:
At Up (AIX 5.3) only because that was where I discovered the error
when AR is  ar -X 64
2009-04-22 16:06:24 -05:00
Raymond Lu
8b307b67d2 [svn-r16839] Added a new test case for h5repack_named_dtypes.h5.
Not test yet.
2009-04-22 14:52:56 -05:00
Raymond Lu
be8cb6411a [svn-r16835] Allow an error class to use other class's major or minor errors. Added a test for it, too.
Tested on jam - simple change.
2009-04-22 13:39:10 -05:00
Albert Cheng
37906de73c [svn-r16829] Bug fix.
In Up (AIX system), the insert_libhdf5_settings() infinite looped because
it never found EOF.  Man getc in another system said:
   "If  the  integer  value returned by getc() is stored into a variable of
   type char and then compared against the integer constant EOF, the  com-
   parison may never succeed, because sign-extension of a variable of type
   char on widening to integer is implementation-defined."

Solution:
Changed inchar from type char to int fixed the problem.
Morale of the story: RTFM or HTCW (heed the compiler warnings).

Tested:
Up (AIX 5.3).
2009-04-21 18:28:58 -05:00
Frank Baker
7d55aa03a2 [svn-r16826] Description:
Updated and restructured "Copyright Notice & License Terms" document 
    per new standard.
2009-04-21 18:05:36 -05:00
Neil Fortner
f9fdf6333a [svn-r16817] Fix problem in H5Z.c with --disable-deprecated-symbols
Tested: jam (--disable-deprecated-symbols)
2009-04-21 10:40:11 -05:00
Binh-Minh Ribler
d301ea9246 [svn-r16816] Description:
Added member function Attribute::getInMemDataSize(), which is a wrapper
    of several C calls, to simplify getting the attribute's data size in
    memory.  Used this new function in Attribute::read to get the fixed-len
    string attribute data.

    Added tests to tattr.cpp.

Platforms tested:
    Linux/32 2.6 (jam)
    FreeBSD/64 6.3 (liberty)
    SunOS 5.10 (linew)
2009-04-21 09:10:43 -05:00
Binh-Minh Ribler
eed7245d7c [svn-r16815] Description:
Added member function Attribute::getInMemDataSize(), which is a wrapper
    of several C calls, to simplify getting the attribute's data size in
    memory.  Used this new function in Attribute::read to get the fixed-len
    string attribute data.

    Added to tests in tattr.cpp.

Platforms tested:
    Linux/32 2.6 (jam)
    FreeBSD/64 6.3 (liberty)
    SunOS 5.10 (linew)
2009-04-21 09:09:23 -05:00
Albert Cheng
9bca9d684b [svn-r16814] New feature(Bug 230):
Embed the content of libhdf5.settings into the hdf5 executables so that an
"orphaned" executables can display (via the Unix strings command, for example)
the library settings used to build the executables.

This is a prototype implementation. Much improvement is needed.

configure.in:
    Added the --disable-embedded-libinfo option to disable this feature.
configure:
src/H5config.h.in:
    Generated by autotools like automake.
src/H5detect.c:
    Implement insert_libhdf5_settings() to insert the contents of
    libhdf5.settings into the library as an extern string variable so that it
    is included in all HDF5 executable.  Much improvement is needed.
fortran/src/Makefile.in:
    Auto-generated by bin/reconfigure. (i.e., I did make any changes to cause
    its direct regeneration).

Tested:
Jam serial, using default and --disable-embedded-libinfo, configure options.
2009-04-20 21:02:46 -05:00
Pedro Vicente Nunes
c60f5a8429 [svn-r16810] added the words "Not comparable" in the not comparable messages
tested: linux
2009-04-20 15:59:40 -05:00
Neil Fortner
8c074d5c03 [svn-r16807] Purpose: Fix bug 1533
Description:
Previously, there was no versioning for H5Z_class_t.  This prevented applications
written for 1.6 using custom filters from being able to use the 1.8 library.
There is now an H5Z_class1_t and H5Z_class2_t to enable compatibility.  H5Zregister is
*not* versioned, it determines which version of the struct has been passed in by the
value of the first field (id or version, both are ints).

Tested: jam, linew, smirom (h5committest), jam (--with-default-api-version=v16)
2009-04-20 14:12:19 -05:00
Scott Wegner
b8036fc5f6 [svn-r16806] Purpose: Add new h5repack tests to Windows
Description:
Three new tests were added to the h5repack test script in rev.16802.  This checkin brings those new tests to Windows as well.

Tested:
VS2005 on WinXP x64
2009-04-20 13:24:28 -05:00
Neil Fortner
c7aa94f4ec [svn-r16803] Purpose: Fix bug 1548
Description:
When writing data to a dataset, the data transform was performed after type conversion.
This caused an error if the file type was non-native.  This has been changed so data
transforms are always performed on the memory type.

Tested: jam, linew. smirom (h5committest)
2009-04-20 11:54:52 -05:00
Neil Fortner
6d13b7a243 [svn-r16800] Purpose: Fix bug 1516
Description:
h5repack previously would not take named datatypes into consideration when copying
datasets and attributes.  This would cause extra anonymous datatypes in the target file
at best, and cause errors halfway through the repacking at worst.  h5repack should now
always handle named datatypes correctly.  Named datatypes are also now converted to the
native type when -n is given.

Tested: jam, linew, smirom (h5committest)
2009-04-20 11:37:47 -05:00
Scot Breitenfeld
22acfa9fe1 [svn-r16799] corrected typos in fortran API 2009-04-20 11:26:17 -05:00
Scot Breitenfeld
4336eea98e [svn-r16797] Changed
H5D_CHUNK_CACHE_NSLOTS_DEFAULT_F
H5D_CHUNK_CACHE_NBYTES_DEFAULT_F
H5D_CHUNK_CACHE_W0_DEFAULT_F

to

H5D_CHUNK_CACHE_NSLOTS_DFLT_F
H5D_CHUNK_CACHE_NBYTES_DFLT_F
H5D_CHUNK_CACHE_W0_DFLT_F

to get under the 31 limit for variable names
2009-04-20 11:00:09 -05:00
Scot Breitenfeld
2414c3e600 [svn-r16796] Changed
H5D_CHUNK_CACHE_NSLOTS_DEFAULT_F
H5D_CHUNK_CACHE_NBYTES_DEFAULT_F
H5D_CHUNK_CACHE_W0_DEFAULT_F

to

H5D_CHUNK_CACHE_NSLOTS_DFLT_F
H5D_CHUNK_CACHE_NBYTES_DFLT_F
H5D_CHUNK_CACHE_W0_DFLT_F

to get under the 31 limit for variable names
2009-04-20 10:59:21 -05:00
Mike McGreevy
bc36a358d1 [svn-r16792] Description:
- Updated bin/reconfigure to use latest version of automake (1.10.2). 
      Re-generated Makefile.in's by running bin/reconfigure.

    - Added libtool version numbers to c++, fortran, hl, hl c++, and hl fortran
      libraries.

Tested:

    jam, liberty, smirom
2009-04-20 01:00:11 -05:00
Albert Cheng
476cbeda79 [svn-r16789] Bug Fix (Bug 1398):
For gcc v4.3 and v4.4, with production mode,
if -O3 is used, H5Tinit.c would fail to compile. Actually bad H5Tinit.c is
produced.

If -O (same as -O1) is used, H5Tinit.c compiled okay but test/dt_arith
would fail with:
Testing hard normalized long double -> signed char conversions        time: comm
and terminated abnormally

When -O0 (no optimizatio) is used, H5Tinit.c compilete okay and all tests
passed.

Solution:
Changed the config/gnu-flags to use -O0 for gcc v4.3 and 4.4 for production
flags  for now so that build and tests would work. Still need to investigate
if the error is due to Gcc optimization bug or our code errors.

Tested:
In liberty with gcc43 and gcc44. Also, tested in jam and smirom with
older versions of gcc.
There are no gcc 43 or 44 compilers installed in other THG machines that
I know.
2009-04-20 00:00:44 -05:00
Binh-Minh Ribler
aa775d9738 [svn-r16787] Description:
Fixed to pass parameters to H5Awrite/H5Aread correctly so that
    all Attribute::write and Attribute::read methods work correctly
    for both fixed-length and variable-length string attributes.

    Added more test cases.

Platforms tested:
    Linux/32 2.6 (jam)
    FreeBSD/64 6.3 (liberty)
    SunOS 5.10 (linew)
2009-04-18 23:35:19 -05:00
Pedro Vicente Nunes
ceffce7203 [svn-r16785] added missing test and compare cases inside compounds for nan
tested: linux
2009-04-18 15:55:24 -05:00
Scot Breitenfeld
0ef325886d [svn-r16781] Added information about new fortran wrappers added:
H5D_h5dget_access_plist_f
   H5I_h5iis_valid_f
   H5P_h5pset_chunk_cache_f
   H5P_h5pget_chunk_cache_f
2009-04-17 12:58:05 -05:00
Scot Breitenfeld
b0cecde98b [svn-r16780] Description:
Added tests for the new APIs:

H5D_H5DGET_ACCESS_PLIST_F
H5I_H5IIS_VALID_F
H5P_H5PSET_CHUNK_CACHE_F
H5P_H5PGET_CHUNK_CACHE_F

Platforms tested: 

smirom: pgf90, ifort
linew
liberty: gcc43, gfortran43, gcc44, gfortran44
2009-04-17 12:13:01 -05:00