Commit Graph

5058 Commits

Author SHA1 Message Date
Quincey Koziol
c09dbf5185 [svn-r6869] Purpose:
Bug fix.

Description:
    When the same dataset is opened more than once and those references to the
object are left dangling, the library would not correctly shut down the dataset
API, potentially allowing the file to be truncated.

Solution:
    "force" the dataset IDs to be released when the dataset API is being shut
down by the library.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committested
2003-05-13 15:05:51 -05:00
Quincey Koziol
394656ceba [svn-r6868] Purpose:
Bug fix.

Description:
    If the buffer holding the list of interfaces that are attempting to be
closed down becomes full, the library stops recording that an infinite loop has
occurred when shutting down the interfaces.

Solution:
    Always return the correct "pending" information.

    Also added ellipsis to the string of interfaces to try to make it more
obvious that the buffer became full.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committested
2003-05-13 15:03:45 -05:00
Quincey Koziol
4010a6d9d1 [svn-r6867] Purpose:
Update platform information for release testing.
2003-05-13 15:01:13 -05:00
Quincey Koziol
904d7ec777 [svn-r6866] Purpose:
Clean up comments.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committested
2003-05-13 15:00:18 -05:00
Quincey Koziol
dedf73d7d2 [svn-r6864] Purpose:
Bug fix

Description:
    Added missing line for file close degree setting for this VFD.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committested
    (Unfortunately, none of these tests actually exercised this driver... :-(
2003-05-13 14:49:49 -05:00
Quincey Koziol
e0824c482e [svn-r6863] Purpose:
Bug fix

Description:
    A few groups were left open after they were used.

Solution:
    Closed them. :-)

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committested
2003-05-13 14:48:30 -05:00
MuQun Yang
7b6bd8e299 [svn-r6862] Purpose:
A little change for project modification

Description:
libtestD.dll for debug mode is changed to libtestDd.dll to separate
from release version.

Solution:

Platforms tested:
windows 2000

Misc. update:
2003-05-13 14:15:08 -05:00
Quincey Koziol
460a897e0e [svn-r6861] Purpose:
Bug fix

Description:
    Iterating over the attributes of an object without any attributes was
returning FAIL instead of 0 as the RM states.

Solution:
    Changed return value of H5Aiterate for objects without attributes to be 0
and added regression tests for this.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest not needed.
2003-05-13 13:54:25 -05:00
Quincey Koziol
51d29f215c [svn-r6860] Purpose:
Small code cleanup

Description:
    Remove redundant sanity check.

    Added a note about a potential bug.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest not necessary.
2003-05-13 13:31:57 -05:00
Bill Wendling
16d78f2456 [svn-r6859] Purpose:
Bug Fix

Description:
    Porting preprocessor (-E) bug fix from h5cc to h5fc.

Solution:
    See Description.

Platforms tested:
    Eyeballed (small fix).

Misc. update:
2003-05-13 12:17:56 -05:00
Bill Wendling
8bac19a89f [svn-r6858] Purpose:
Bug Fix

Description:
    Some compilers aren't happy if you specify the same library multiple
    times when linking. This caused HDF5 Lite to crash during tests on
    Kelgia

Solution:
    Modified the script so that the shared libraries are specified only
    once for the commandline.

Platforms tested:
    Kelgia (small fix).

Misc. update:
2003-05-13 11:54:44 -05:00
Raymond Lu
27c6327973 [svn-r6857] Purpose: bug fix
Description: when a datatype element size is bigger than I/O datatype
    conversion buffer(1MB), library reports failure.

Solution: adjust conversion buffer to be at least equal to one element size

Platforms tested: h5committest
2003-05-13 11:49:38 -05:00
Bill Wendling
8751379484 [svn-r6856] Purpose:
Bug Fix

Description:
    When doing a "configure" using the h5cc script as the compiler, it
    would fail to accept the "-E" flag as running the preprocessor. The
    problem was that it was trying to link the file afterwards. Of
    course, the file wouldn't be there, so it would fail.

Solution:
    Changed it so that if the -E flag is used, then we don't try to link
    (this is how it's done in mpicc...I must have copied it wrongly).

Platforms tested:
    Linux & Kelgia (small change not needing full testing)

Misc. update:
2003-05-13 10:52:13 -05:00
Bill Wendling
699d1727e0 [svn-r6855] Purpose:
Bug Fix

Description:
    The newly added H5TEST_DLL{VAR} macros weren't defined if it wasn't
    a Windows environment.

Solution:
    "#define" them to "" and "extern" if not a WIN32 environment.

Platforms tested:
    Linux (small change not needing full testing)

Misc. update:
2003-05-13 10:50:31 -05:00
Albert Cheng
c7478518b4 [svn-r6854] Purpose:
Feature

Description:
Sometimes the total build process take a long time, especially in
parallel systems.  Need some idea if some times are taking way
too long to process.

Solution:
Added timestamps marking the beginning and ending of tests in
one directory.  This gives a rough idea of how much time the
tests use.

Platforms tested:
Tested only in Eirene since this is just a makefile thing and only
involve a simple command like echo and date.

Misc. update:
2003-05-13 10:21:42 -05:00
MuQun Yang
ae3c53acf1 [svn-r6853] Purpose:
Add decriptions to use libtestD.dll.

Description:
libtestD.dll should be placed to a place that the user can find in order to
test HDF5 DLL within HDF5 workspace.

Solution:


Explained in document.
Platforms tested:
No need

Misc. update:
2003-05-13 09:47:35 -05:00
MuQun Yang
b0264f0c05 [svn-r6852] Purpose:
Add windows specified macro H5_TESTDLL for test routines.

Description:
See the previous CVS message.

Solution:

Platforms tested:
windows2000(will not affect other platforms)

Misc. update:
2003-05-13 09:28:09 -05:00
MuQun Yang
f666340233 [svn-r6851] Purpose:
To add macro HDF5TESTDLL for windows libtest library.

Description:
Many HDF5 tests will use h5test.c.
So we create a libtest library to
1) make tests more organized and
2) make tests more consistent with other platforms
3) reduce compiling times
4) reduce dumplicated warnings possibily generated by h5test.c
However, we didn't create the corresponding libtest DLL correctly,
now, some warnings are generated because of this; so for this release,
we follow exactly DLL-DLL rules, to create an internal libtest DLL for
our test suites.
The application who used HDF5DLL will not have extra burdens to add
HDF5TESTDLL and this will reflect in the release.txt


Solution:
USE DLL import and export library by defining macro HDF5TESTDLL and HDF5TESTUSEDLL

Platforms tested:
Windows 2000(the macro will not affect on non-WIN32 platforms).

Misc. update:
2003-05-13 09:26:44 -05:00
MuQun Yang
2ee6cdd91b [svn-r6850] Purpose:
Windows project-rearrangements, shut off warnings

Description:
1. H5Farray.c is no longer used, removed it from hdf5.dsp.
2. libtestD is supposed to be a windows DLL; however it is treated as static library in the past.
   change it back to DLL and add HDF5TESTDLL and HDF5USETESTDLL.

Solution:
1. see above.
2. change h5api_adpt.h and h5test.h, add macro HDF5TESTDLL and HDF5TESTUSEDLL.
These changes will not affect other platforms.

Platforms tested:
windows 2000

Misc. update:
2003-05-13 08:59:19 -05:00
Pedro Vicente Nunes
a23049f488 [svn-r6849] Purpose:
changed algorythm

Description:
changed the array_diff function to increment the read buffer with a size selected
by an appropriate native data type.
previously it was assumed, e.g. int size = 4 bytes

Solution:

Platforms tested:

Linux 2.4 (rockaway)
SunOS 5.7 (arabica, 64bit mode)
IRIX 6.5 (modi4)


Misc. update:
2003-05-12 12:10:27 -05:00
Pedro Vicente Nunes
3a243f5b90 [svn-r6848] Purpose:
code warrior update

Description:
update project file

Solution:

Platforms tested:
code warrior

Misc. update:
2003-05-12 11:44:50 -05:00
Pedro Vicente Nunes
27e7042053 [svn-r6847] Purpose:
code warrior update

Description:
changed the project file to include the new H5Dio.c and remove the old H5Farray.c files
updated install instructions

Solution:

Platforms tested:
code warrior

Misc. update:
2003-05-12 11:36:32 -05:00
Albert Cheng
3a832338c1 [svn-r6846] Purpose:
Bug fix

Description:
The tests would just segmentation fault in Tflops because the
compiled code were launched without using the $RUNSERIAL to launch
them.  This may fail in some batch systems like Tflops.

Solution:
Used $RUNSERIAL to launch the compiled code.
Also fixed a typo of the script command line.

Platforms tested:
Only tested in Tflops since the modified code resided there.

Misc. update:
2003-05-12 10:56:49 -05:00
Albert Cheng
deab04989e [svn-r6845] Bug fix.
cached the result of configure test for system_scope_threads(no)
since TFLOPS can't do testing in frontends.

Tested in sasn100 (frontend of Janus).
2003-05-12 01:11:05 -05:00
Pedro Vicente Nunes
f2c1d0e162 [svn-r6844] Purpose:
bug fix

Description:
datasets with different storage datatypes where not read to memory to same size types

Solution:
obtain the memory type and size, for the TWO datasets ,
with the "fixtype" function
"upgrade" the smaller size to the larger if they are different
added H5DIFF_DEBUG flag for print information

Platforms tested:
Linux 2.4 (rockaway)
SunOS 5.7 (arabica, 64bit mode)
IRIX 6.5 (modi4)



Misc. update:
2003-05-10 14:38:57 -05:00
Quincey Koziol
7d9c86097a [svn-r6843] Purpose:
Code cleanup

Description:
    Clean up warnings exposed by compiling on O2K.  Also, revert some of Bill
and my changes to the H5S_mpi_opt_types_g, etc. and settle them back into their
original location.

Platforms tested:
    h5committested.
2003-05-09 13:18:21 -05:00
Bill Wendling
c390d06017 [svn-r6842] Purpose:
Code Cleanup

Description:
    Warning messages were being produced by the "make" program because
    the "docdir" was being specified twice as a target in the generated
    Makefiles. This is because the "EXAMPLESDIR" was also defined as
    "docdir".

Solution:
    Made "EXAMPLESDIR" unique for C, Fortran, and C++ in the commence.in
    file and removed EXAMPLESDIR from the Makefile.ins

Platforms tested:
    Dangermouse (only affects make system, not code).

Misc. update:
2003-05-08 18:19:15 -05:00
Bill Wendling
6af5ba7c56 [svn-r6841] Purpose:
Bug Fix

Description:
    A variable wasn't declared in this file.

Solution:
    Put the extern declaration of the variable in this file. It's defined
    in the H5S.c module.

Platforms tested:
    Modi4 (This affects only parallel platforms)

Misc. update:
2003-05-08 17:25:08 -05:00
Raymond Lu
224fae1bb2 [svn-r6839] Purpose: feature protection
Description: H5Sselect_hyperslab and H5Sselect_elements didn't check scalar
    dataspaces.

Solution: put error detection in those functions.

Platforms tested: eirene(simple change).
2003-05-08 16:12:32 -05:00
Pedro Vicente Nunes
977c5fadba [svn-r6838] Purpose:
added 2 test files for h5diff that were accidently left over yesterday

Description:

Solution:

Platforms tested:

Misc. update:
2003-05-08 15:37:14 -05:00
Quincey Koziol
390f1d0284 [svn-r6837] Purpose:
Code cleanup.

Description:
    Move many package or internal function prototypes and macro definitions
into tighter scope according to their current use.
    Added more comments where appropriate.
    Eliminate ancient, unused functions.
    Added a couple "accessor" functions to get parts of data structures which
were moved out of scope.

Platforms tested:
    h5committested
2003-05-08 15:09:07 -05:00
Quincey Koziol
3fff86acfa [svn-r6836] Purpose:
Bug fix

Description:
    Clean up small memory leak.

Platforms tested:
    h5committested.
2003-05-08 15:05:14 -05:00
Elena Pourmal
df446a46d5 [svn-r6835]
Purpose: Maintenance

Description: I changed release version to 1.5.54.
             Email about tetsing of 1.5.53 will be send after this checkins.

Solution: used bin/h5vers -s to change the version number

Platforms tested: Done on arabica

Misc. update:
2003-05-08 14:14:29 -05:00
Albert Cheng
4d9ea22570 [svn-r6834] Purpose:
Feature change

Description:
HDF5_PARAPREFIX has been default to various values like /tmp,
/var/tmp, ... None of these solve all problems and all of them
created new problems.  For LLNL GPFS, '.' is more appropriate since
they can do the build right inside gpfs.  Same for NCSA Copper.
The special setting for Janus is still retained since that is a
one of a kind machine and the uses could use all the help.

Platforms tested:
h5committested (using sol instead of arabica) plus eirene(pp).

Misc. update:
2003-05-08 13:50:14 -05:00
Albert Cheng
864d07f780 [svn-r6833] Purpose:
Improvement

Description:
Added an explanation of using $HDF5_PARAPREFIX for Parallel tests.

Platforms tested:
h5committested (using sol instead of arabica) plus eirene(pp).

Misc. update:
2003-05-08 13:47:20 -05:00
Quincey Koziol
646e232a54 [svn-r6832] Purpose:
Code cleanup

Description:
    Improve file format debugging output.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    Triple check not needed
2003-05-08 12:21:43 -05:00
Quincey Koziol
55dbd8d92a [svn-r6831] Purpose:
Bug fix

Description:
    New external file double-vectorized I/O routines were checking an assertion
on the wrong variable (essentially a typo :-).

Solution:
    Check correct variable.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    Triple check not needed.
2003-05-08 08:06:15 -05:00
Quincey Koziol
ae1be622b9 [svn-r6830] Purpose:
Bug fix

Description:
    Dataspace selections created for individual chunks during chunk dataset
I/O were leaking memory.

Solution:
    Properly set reference count on selection, so they get free'd when the
dataspace is closed.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    Triple check not needed.
2003-05-08 08:05:00 -05:00
Quincey Koziol
713754f81f [svn-r6829] Purpose:
Code cleanup.

Description:
    Cleaned up an unusued variable and some commented out code.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    Triple check not needed.
2003-05-08 08:03:32 -05:00
Raymond Lu
546dea5dd9 [svn-r6828] Purpose: bug fix
Description: H5T_XXX_init_interface calls H5T_init_interface causing
     datatype not closed after file is closed.

Solution: changed H5T_init_interface to H5T_init

Platforms tested: h5committest
2003-05-07 17:30:56 -05:00
Pedro Vicente Nunes
401c1bc318 [svn-r6827] Purpose:
added new test files for h5diff
bug fix

Description:
the criteria for determining the correct switch case cast to void* to type* was the data size read from disk.
this was causing problems on Cray T3E, where all integer except char are 8 bytes long

Solution:
changed the criteria for using the memory size instead, which is determined by the same function
that reads the data into memory

the messages " using memory NATIVE_TYPE_X" were  removed, because they might not coincid on different
platforms.

Platforms tested:
Linux 2.4 (rockaway)
SunOS 5.7 (arabica)
IRIX 6.5 (modi4)


Misc. update:
2003-05-07 17:28:09 -05:00
Pedro Vicente Nunes
1c37e0ba3d [svn-r6826] Purpose:
added new test files for h5diff

Description:

Solution:

Platforms tested:

Misc. update:
2003-05-07 17:12:59 -05:00
Quincey Koziol
43e3b45021 [svn-r6825] Purpose:
New feature/enhancement

Description:
    Chunked datasets are handled poorly in several circumstances involving
certain selections and chunks that are too large for the chunk cache and/or
chunks with filters, causing the chunk to be read from disk multiple times.

Solution:
    Rearrange raw data I/O infrastructure to handle chunked datasets in a much
more friendly way by creating a selection in memory and on disk for each chunk
in a chunked dataset and performing all of the I/O on that chunk at one time.

    There are still some scalability (the current code attempts to
create a selection for all the chunks in the dataset, instead of just the
chunks that are accessed, requiring portions of the istore.c and fillval.c
tests to be commented out) and performance issues, but checking this in will
allow the changes to be tested by a much wider audience while I address the
remaining issues.


Platforms tested:
    h5committested, FreeBSD 4.8 (sleipnir) serial & parallel, Linux 2.4 (eirene)
2003-05-07 16:52:24 -05:00
Bill Wendling
db543f1a23 [svn-r6823] Purpose:
Code Improvements/Bug Fixes

Description:
    Comparison of equality of a double/float variable to 0.0 is not
    guaranteed to work and is bad practice.

    In H5Fcontig.c, a warning was given by a statement like:

        x = (++x) % y;

    This could be confusing to a compiler I suppose.

    In H5RS.c, a typedef of a structure was being tagged by the compiler
    as "useless" because it had the form:

        typedef struct foo {
            int var1;
            /* ... */
        }; /* <--- note no name for this typedef */

    The statement "typedef struct foo foo" is already in the header file.

Solution:
    Test that the absolute value of the variable is < a very small
    positive number.

    Changed "x = (++x) % y" to "++x; x %= y;" instead.

    Removed the "typedef" from the structure in the H5RS.c file.

Platforms tested:
    Modi4   (Parallel & Fortran)
    Verbena (C++ & Fortran)
    Arabica (Fortran)

Misc. update:
2003-05-07 15:52:36 -05:00
Bill Wendling
36a0b8e3dd [svn-r6822] Purpose:
Code Improvements/Bug Fixes

Description:
    Comparison of equality of a double/float variable to 0.0 is not
    guaranteed to work and is bad practice.

Solution:
    Test that the absolute value of the variable is < a very small
    positive number.

Platforms tested:
    Modi4   (Parallel & Fortran)
    Verbena (C++ & Fortran)
    Arabica (Fortran)

Misc. update:
2003-05-07 15:49:51 -05:00
Elena Pourmal
96061d1be7 [svn-r6821]
Purpose: Cray T3E maintenance with Raymond's help

Description: fillval test failed for compact dataset since the
             size of the dataset was bigger than 64K.

Solution:  Reduced the dataspace of the compact dataset to 1024 elements.


Platforms tested: T3E; it was also tested with semi-manual h5committest.
                  (I had to built and test manually on modi4 parallel because
                  of some weird failure of h5committest on modi4)
Misc. update:
2003-05-06 18:24:07 -05:00
Elena Pourmal
c0de1ca9fe [svn-r6820]
Purpose: Fortran updtae

Description: Created new functions h5pset(get)_fapl_mpiposix_f


Platforms tested: Compilation was tested with semi-manual h5committest.
                  (I ahd to built and test manullay on modi4 parallel because
                   of some weird failure of h5committest on modi4)
                  There are no tests yet for those functions. Kent was
                  going to use them in the MEAD project to test
                  the performance.
Misc. update:
2003-05-06 18:20:39 -05:00
Elena Pourmal
6e5d4bcc9c [svn-r6819]
Purpose: Maintenance for T3E

Description: Cray updated T3E to run unicosmk2.0.6.X
             Configuration failed.

Solution: Created new unicosmk2.0.6.X files in the config and fortran/config
          directories and added them to MANIFEST. I had to disable warning
          # 412 for fortran compilation. The warning would prevent creation
          of executable programs.

Platforms tested: Cray T3E

Misc. update:
2003-05-06 18:17:18 -05:00
Elena Pourmal
0b337b6c81 [svn-r6818]
Purpose: Maintenance for T3E

Description: Cray updated T3E to run unicosmk2.0.6.X
             Configuration failed.

Solution: Created new unicosmk2.0.6.X files in the config and fortran/config
          directories and added them to MANIFEST

Platforms tested: Cray T3E

Misc. update:
2003-05-06 18:16:23 -05:00
Frank Baker
030c5e8e4e [svn-r6817]
Purpose:
    New features.

Description:
    Added 3 new functions:
        H5Gget_num_objs
        H5Gget_objname_by_idx
        H5Gget_objtype_by_idx

Platforms tested:
    Safari, IE 5
2003-05-06 17:27:51 -05:00