Commit Graph

3340 Commits

Author SHA1 Message Date
Quincey Koziol
e71e53c743 [svn-r7920] Purpose:
Bug fix

Description:
    Correct a couple of minor problems with 1.6 compat mode.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    not tested in h5committest
2003-12-10 11:06:37 -05:00
Quincey Koziol
31431be374 [svn-r7917] Purpose:
Code cleanup

Description:
    Clean up compiler warnings, especially the 'FUNC' variable not used which
comes out in production mode.

Solution:
    Had to add a new FUNC_ENTER_NOAPI_NOINIT_NOFUNC macro for those non-API
functions which don't need the 'FUNC' variable defined.  (This will be _so_
much easier when C99 is standard on all our supposed platforms, since it has a
__FUNC__ macro... )

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor for h5committest (although there were lots of files changed, the
        change was minor in each one)
2003-12-06 15:38:31 -05:00
Quincey Koziol
1b1e1ebbbd [svn-r7915] Purpose:
Bug fix

Description:
    Make a copy of the index value for H5Giterate and use that instead of
dereferencing the index pointer.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to need h5committest
2003-12-06 09:57:06 -05:00
Albert Cheng
aaff647518 [svn-r7914] Purpose:
Regenerate the Dependencies files if needed.

Description:

Solution:

Platforms tested:

Misc. update:
2003-12-05 10:39:53 -05:00
Quincey Koziol
6d8dd9c504 [svn-r7875] Purpose:
Omnibus floating-point bug fix changes

Description:
    There are a number of problems in the floating-point conversion code that
were exposed by Ray's recent int<->float checkin:
    - The 'my_isnan' code in test/dtypes.c was broken and would always return
        true.  The meant that the actual values in the float<->float conversion
        tests were _never_ checked, hiding the other bugs included in this
        checkin.
    - A recent change I made to the type conversion code used "FLT_MIN" instead
        of "-FLT_MAX" for the most negative 'float' value for the double->float
        conversion, which meant that any the negative number that was converted
        from a double to a float would have been mapped to zero, essentially.
    - A change that Robb appeared to have made ~2.5 years ago to the "generic"
        float->float conversion routine appears to be incorrect and I've backed
        it out.
    - Floating-point conversions on SGI's which converted denormalized values
        would be mapped to zero instead of being propertly preserved in the new
        type.  This was addressed by an SGI-specific system call to prevent the
        behavior.

Solution:
    Described above, generally.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest

Misc. update:
    release_docs/RELEASE update forthcoming...
2003-11-24 11:47:18 -05:00
Quincey Koziol
2106568c9c [svn-r7873] Purpose:
Code cleanup

Description:
    Remove an unused typedef, fix a LONG->LLONG typo and use LLONG_MIN where
appropriate.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-11-21 16:58:04 -05:00
Quincey Koziol
59e9042d5a [svn-r7872] Purpose:
New macro

Description:
    Introduce LLONG_MIN macro to match LLONG_MAX macro

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-11-21 16:57:09 -05:00
Quincey Koziol
f749d46787 [svn-r7871] Purpose:
Code cleanup

Description:
    Make some functions static and remove unused variables, etc.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-11-21 15:13:17 -05:00
Raymond Lu
c1e333f006 [svn-r7868] Purpose: new feature
Description:  data type conversion between integers and float numbers.
              (Cover your ears.  It's going to explode.:)

Solution:       covers all native type conversion.  Mainly uses hardware
            conversion but handles overflow more gracefully.

Platforms tested: h5committest
2003-11-21 12:07:25 -05:00
Quincey Koziol
1619a308cb [svn-r7860] Purpose:
Bug fix

Description:
    Our previous "optimization" of metadata writing which only wrote metadata
from one process was abusing MPI-I/O and after some consultation with Rob Ross
and Rajeev Thakur, Albert & I have come up with a solution...

Solution:
    Instead of only writing from one process, issue a collective write
operation with all processes, for metadata writes.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-11-20 09:36:59 -05:00
Bill Wendling
e3a280a165 [svn-r7847] Purpose:
Bug Fix

Description:
    The SAP was sending back replies to the client but the client wasn't
    picking them up (this was after a dump from the server.

Solution:
    Read the extra replies from the server.

Platforms tested:
    AIX (w/ FPHDF5)
    Linux (w/ FPHDF5)
    Solaris (w/ Fortran & C++)

Misc. update:
2003-11-13 15:05:56 -05:00
Quincey Koziol
18c2554090 [svn-r7845] Purpose:
Bug fix.

Description:
    The new routines added for H5MM_[m|c]alloc were causing the function
stack code to infinitely recurse while allocating room for the thread-specific
information (when thread-safety was turned on).

Solution:
    Call HDmalloc directly instead of H5MM_malloc

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Changed are not tested in h5committest
2003-11-13 13:15:39 -05:00
Quincey Koziol
e1792ebb22 [svn-r7842] Purpose:
Bug fix

Description:
    Variable length strings and sequences with NULL pointers were not handled
by library, causing problems access the data.  This also affected fill values
for variable-length datatypes.

Solution:
    Address the issues in the library by detecting NULL sequences/strings
and avoid trying to convert them.

    Patched up dumper to display NULL sequences/strings.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-11-13 10:19:50 -05:00
Bill Wendling
680262645f [svn-r7838] Purpose:
Bug fix and File Addition

Description:
    - Fixed when reading from the file with FPHDF5. It wasn't recording
      how many bytes it read.

    - Added Arithmetic Transformation modules. These haven't been
      included into the HDF5 build. I just added them here for future
      porposes...

Solution:
    Added a call to "MPI_Get_count" to get the number of bytes read.

Platforms tested:
    Linux (w/ FPHDF5)
    AIX (w/ and w/o FPHDF5)

    FPHDF5-specific fixes...No need for H5committest

Misc. update:
2003-11-12 18:02:00 -05:00
Quincey Koziol
2668d2e5a3 [svn-r7836] Purpose:
Bug fix

Description:
    Add H5MMprivate.h header, to fix builds.

Platforms tested:
    Eyeballed it, too minor to require testing...
2003-11-12 15:19:39 -05:00
HDF Admin
834c8a06f3 [svn-r7831] Snapshot version 1.7 release 10 2003-11-09 03:06:07 -05:00
Quincey Koziol
0497e80b50 [svn-r7829] Purpose:
Bug fix & code cleanup

Description:
    Allowing the library to call malloc with a size of 0 bytes causes problems
for some users, so we check for allocations of 0 bytes and disallow them now.

    Cleaned up some code which could call malloc with 0 size.

    Changed some code calling HDmalloc directly to call H5MM_malloc(), which
allows us to check for 0 sized allocations.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-11-08 10:32:53 -05:00
Quincey Koziol
dd969f1ead [svn-r7827] Purpose:
Bug fix

Description:
    Make --disable-hsizet work properly again by fixing a couple of tests and
correcting the definition of SSIZET_MAX.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest not used, as it doesn't test this configuration.
2003-11-08 09:21:49 -05:00
Quincey Koziol
f809c2d352 [svn-r7826] Purpose:
Code cleanup

Description:
    Cleanup compiler warning by breaking apart the cast checking.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to need h5committest
2003-11-08 09:16:04 -05:00
Quincey Koziol
a1ee1c9190 [svn-r7824] Purpose:
Code optimization

Description:
    Improved integer & floating-point datatype conversions by removing some
corner cases.  Got rid of algorithm which walked the buffer of elements to
convert backwards, switching to algorithm which computes the non-overlapping
space in the buffer and repeatedly converts it in the forward direction.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
    Cray SV1 & T3E (T90 is not accessible)
2003-11-07 15:21:43 -05:00
Quincey Koziol
debbaac81d [svn-r7820] Purpose:
Bug fix

Description:
    Don't check the number of szip parameters set during the "can apply" and
"set local" callbacks, be safe about setting the parameters instead.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-11-06 08:43:02 -05:00
Quincey Koziol
3ddea291c6 [svn-r7818] Purpose:
Warning cleanup

Description:
    Make a parameter 'const' to clean up a warning during compiles.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-11-06 08:40:37 -05:00
HDF Admin
fd7fc53c9d [svn-r7807] Snapshot version 1.7 release 9 2003-11-02 03:07:05 -05:00
Bill Wendling
d677a77c4d [svn-r7805] Purpose:
Bug Fix

Description:
    The End of Address information needed to be kept by the SAP. Some
    processes were trying to get the EOA information in collective mode,
    but the action wasn't collective at the time.

Solution:
    Keep the EOA information for the file on the SAP. Clients query the
    SAP to get/set it when needed.

Platforms tested:
    Linux (w/ FPHDF5)
    Copper (w/o FPHDF5)
    (FPHDF5 specific, so no need for full testing)

Misc. update:
2003-10-31 16:46:58 -05:00
Quincey Koziol
0b8b8df0e0 [svn-r7803] Purpose:
Minor code cleanup

Description:
    Fixed up comments, made the H5I_get_file_id() routine static, removed
    H5Gprivate from including itself...

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-10-31 16:02:16 -05:00
Raymond Lu
7948d9eb26 [svn-r7801] Purpose: added feature
Description:  more feature to H5Iget_file_id().  If file ID is closed, it can
still return an ID given object ID.


Platforms tested: h5committest
2003-10-31 13:48:35 -05:00
Albert Cheng
5b5e7d4dac [svn-r7798] Purpose:
Bug fix

Description:
MPE color for new routine H5Iget_file_id is missing.

Solution:
Added it.

Platforms tested:
Only tested in copper since it is the only one that can do MPE.

Misc. update:
2003-10-30 17:52:57 -05:00
Quincey Koziol
967c5d5684 [svn-r7794] Purpose:
Code cleanup & simplification

Description:
    Replace [non-working] code in routine to build up an MPI derived type for
a hyperslab selection that was supposed to "flatten" out contigous blocks with
code that uses a selection iterator (which _does_ have working "flattening"
code).

    Remove "contiguous hyperslab" code for MPI selections as it is unnessary
now.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w & w/o parallel
    Linux 2.4 (verbena) w/FORTRAN & C++
    Solaris 2.7 (arabica) w/64-bit
2003-10-30 16:38:16 -05:00
Quincey Koziol
90e269d552 [svn-r7789] Purpose:
Bug fix & code cleanups

Description:
    Change our use of MPI derived datatypes to not create datatypes with
"0-sized" lengths, which causes the LANL Q machine to hang.

    Also, get rid of "prefer MPI derived datatypes" environment variable since
it has no advantage.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w & w/o parallel
    h5committest
2003-10-29 14:32:36 -05:00
Quincey Koziol
bbe23c026f [svn-r7786] Purpose:
Code cleanup & add a feature

Description:
    Added support for querying the file ID of named datatypes to new
H5Iget_file_id function.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-10-29 13:27:37 -05:00
Raymond Lu
d1f7c81a46 [svn-r7784] *** empty log message *** 2003-10-29 12:04:58 -05:00
Quincey Koziol
10b6bab2ab [svn-r7767] Purpose:
Code cleanup

Description:
    Untwist the last few sections of code before starting on fixing the
problems with reading off the end of the file in earnest.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    FreeBSD 4.9 (sleipnir) w/parallel
    h5committest not necessary - parallel only changes
2003-10-28 10:33:56 -05:00
Quincey Koziol
f4240b2639 [svn-r7765] Purpose:
Code cleanup

Description:
    More collective/independent cleanups to straighten out code contortions.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    FreeBSD 4.9 (sleipnir) w/parallel
    Linux 2.4 (verbena) w/fortran & C++
    Solaris 2.7 (arabica) w/64-bit extensions enabled
2003-10-28 09:42:24 -05:00
Quincey Koziol
47c3791add [svn-r7763] Purpose:
Bug fix

Description:
    Code was using an internal DXPL with collective I/O turned on during
independent I/O operations to fill dataset on disk.

Solution:
    Switched to internal DXPL with independent I/O

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    FreeBSD 4.9 (sleipnir) w/parallel
    Linux 2.4 (verbena) w/fortran & C++
    Solaris 2.7 (arabica) w/64-bit extensions enabled
2003-10-28 09:40:09 -05:00
Quincey Koziol
99d8cfc971 [svn-r7759] Purpose:
Fix serial build

Description:
    I accidentally put the "use_par_opt_io" variable in an #ifdef PARALLEL
section.

Solution:
    Hoist it out of parallel section

Platforms tested:
    Eyeballed it - very trivial
2003-10-27 19:16:28 -05:00
Quincey Koziol
8a43391a11 [svn-r7754] Purpose:
Code cleanup

Description:
    Straighten out more goofiness in the MPI code dealing with collective I/O
transfers - mostly make certain that a view is set if-and-only-if collective
I/O is occurring on raw data (and vice versa for views and independent I/O)

Platforms tested:
    FreeBSD 4.9 (sleipnir) w/parallel & FPHDF5
    too minor to repquire h5committest
2003-10-27 16:38:27 -05:00
Quincey Koziol
014a25d052 [svn-r7746] Purpose:
Code cleanup

Description:
    Remove collective parallel I/O checking code, now that it's impossible to
get into this code with collective access enabled.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-10-27 13:18:08 -05:00
Quincey Koziol
618c36029c [svn-r7744] Purpose:
Code cleanup

Description:
    More refactoring on setup of MPI-IO parameters: hoisted the code to change
the transfer mode from collective to independent up into the H5D_read and
H5D_write routines, instead of duplicating it inside each of the chunk/contig
read/write routines.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-10-27 12:11:24 -05:00
Quincey Koziol
3c7887424f [svn-r7742] Purpose:
Code cleanup

Description:
    Clean up setup code for collective I/O transfers to make the logic more
obvious.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor for h5committest
2003-10-27 11:32:05 -05:00
HDF Admin
035991e5c0 [svn-r7739] Snapshot version 1.7 release 8 2003-10-26 02:02:15 -05:00
Quincey Koziol
8cf4b9c5e5 [svn-r7732] Purpose:
Bug fix

Description:
    Single hyperslab selections (which were set with only one call to
H5Sselect_hyperslab) that had dimensions that could be "flattened" but were
interspersed with dimensions that could not be flattened were not correctly
handled, causing core dumps.

Solution:
    Re-work "flattening" code to handle this case properly.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w/parallel
    h5committest
2003-10-25 11:09:59 -05:00
Quincey Koziol
d0be702428 [svn-r7725] Purpose:
Code cleanup

Description:
    Refactored handlier of VFL drivers in file access and data transfer property
lists in order to simplify and unify the code dealing with them.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-10-24 14:39:23 -05:00
Quincey Koziol
9d22c9e61a [svn-r7724] Purpose:
Bug fix

Description:
    Change "H5_HAVE_PARALLEL" to "H5_HAVE_FPHDF5" around VFL ID, to prevent
daily builds from failing.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w/parallel
    too specialized to require h5committest
2003-10-24 14:36:56 -05:00
Bill Wendling
5ca1036efe [svn-r7699] Purpose:
Bug Fix

Description:
    The owners and reference counts of locks weren't being handled
    correctly.

Solution:
    Allocate an array the size of the COMM FPHDF5 is invoked with for
    each lock. Then reference count within this array. Keep an extra
    "counter" to see how many different processes have this particular
    lock. Free the lock when that counter reaches zero.

Platforms tested:
    Linux & Copper (FPHDF5 specific).

Misc. update:
2003-10-22 16:16:21 -05:00
Bill Wendling
68fed88177 [svn-r7697] Purpose:
Bug Fix

Description:
    Was using HGOTO_ERROR within a "done:" block.

Solution:
    Changed HGOTO_ERROR macro to HDONE_ERROR inside of a done: block.

Platforms tested:
    Linux (Small change).

Misc. update:
2003-10-22 16:03:34 -05:00
Bill Wendling
ecf3e6dc45 [svn-r7696] Purpose:
Message Correction

Description:
    Uncapitalized the beginning of the error messages.

Solution:

Platforms tested:
    Linux (Very small change).

Misc. update:
2003-10-22 16:02:26 -05:00
Quincey Koziol
00d5fd8e2f [svn-r7682] Purpose:
Bug fix

Description:
    Remove the [duplicated] native C9x datatype initializatin code from H5T.c
and let the automatically generated code in H5Tinit.c handle initializing them,
if they are allowed by the compiler.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Linux 2.4 (verbena, eirene)
    probably should be h5committested, but it's late and I'm fairly certain
        this will fix the problem... :-/
2003-10-20 23:06:16 -05:00
Quincey Koziol
1b3954383f [svn-r7675] Purpose:
Bug fix

Description:
    Avoid "OPAQUE" symbol in template macro invocation, since it's already
defined as a macro on Windows.

Solution:
    OPAQUE -> OPAQ

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Windows ? (Pedro's machine :-)
2003-10-20 14:01:35 -05:00
Quincey Koziol
4257a5e1f8 [svn-r7674] Purpose:
Tweak comments.

Testing:
    Not necessary..
2003-10-20 12:19:40 -05:00
Quincey Koziol
71ec0f5777 [svn-r7669] Purpose:
Refactor code

Description:
    Use "template macro" technique to eliminate a huge amount of repeated code
in type initialization code (almost 1000 lines, between this change and the
changes to the H5Tconv.c file earlier).
    This centralizes the common parts of the code and makes the different parts
of the code more obvious.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-10-20 11:43:40 -05:00