Commit Graph

8226 Commits

Author SHA1 Message Date
Elena Pourmal
8f9e9e2c45 [svn-r11400] Purpose: Maintenance
Description: Added -K c99 flag to sxc++ flags to ienforce C99 standard;
             added cache values for getrusage and gethostname

Solution:

Platforms tested: SX-6

Misc. update:
2005-09-12 22:13:51 -05:00
Leon Arber
a9f72e29fd [svn-r11397] Purpose:
Bug fix

Description:
Forgot to remove a debug statement before committing.

Solution:
The script printined out what it thought CC_BASENAME was for debugging.
Removed this print statement.

Platforms tested:
minor change, mcr

Misc. update:
2005-09-12 21:15:58 -05:00
Albert Cheng
2e819451e9 [svn-r11396] Purpose:
Code cleanup.

Description:
g++ on sleipnir complained and exited failed because the
malloc statement in ALIGNMENT was not properly casted.

Solution:
added the proper (char * ) casting.

Platforms tested:
Passed heping using gcc.
Sleipnir g++ passed too but that was also because the default development
mode is used.
2005-09-12 16:30:07 -05:00
Raymond Lu
93e661f16b [svn-r11395] Purpose: Bug fix
Description: Quincey added the condition branch (else if (*((ST*)S) != (ST)((DT)(*((ST*)S)))))
in the definition of the macro H5T_CONV_Fx_CORE.  It handles a special situation
when the source is "float" and assigned the value of "INT_MAX".  Compilers do roundup
making this value "INT_MAX+1".  This branch is to check that situation and return
exception for some compilers, mainly GCC.

The branch if (*((ST*)S) > (DT)(D_MAX) || (S_PREC < D_PREC && *((ST*)S) ==
(DT)(D_MAX))) is for some compilers like Sun, HP, IBM, and SGI where under
the same situation the "int" doesn't overflow.

A test was added to dt_arith.c to check 2 conversions, from float to int where the
float is INT_MAX, and from double to signed char where the double is SCHAR_MAX.


Platforms tested: h5committest and fuss.
2005-09-12 14:39:16 -05:00
Leon Arber
c78c580f5c [svn-r11394] Purpose:
Bug fix

Description:
Same bug as was just checked in for v16.  Do the complicated
derived datatype check for compilers named mpiicc in addition to
mpicc.

Solution:

Platforms tested:

Misc. update:
2005-09-12 13:53:26 -05:00
Quincey Koziol
f9fee72df9 [svn-r11392] Purpose:
Bug fix

Description:
    Recent group code changes tweaked the size of the free space in the file
for this test.  Update to the latest correct value.

Platforms tested:
    h5committested
2005-09-12 12:33:55 -05:00
MuQun Yang
384d57221c [svn-r11389] Purpose:
Modify the comments for collective chunk IO support
Description:

Solution:

Platforms tested:

Misc. update:
2005-09-12 11:56:45 -05:00
Pedro Vicente Nunes
b55f9a0ada [svn-r11388] Purpose:
bug fix

Description:
during the generation of some test files, H5Fclose was not called
during the #ifdef detection of the scale ofsset filter, a wrong macro symbol was used

Solution:

Platforms tested:
linux

Misc. update:
2005-09-12 11:26:29 -05:00
Quincey Koziol
5ad2673fde [svn-r11386] Purpose:
Code cleanup/reorganization

Description:
    Merge back some more changes extracted from the "compact group" set.
This bunch cleans up and prepares the H5G_* routines for eventual import of
new features.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Linux 2.4
    Mac OS X.4
2005-09-12 09:29:54 -05:00
Quincey Koziol
5ffde305cd [svn-r11384] Purpose:
Code cleanup

Description:
    Merge back changes from "compact group" work that improve the
infrastructure of the library and may impact others.  In this round of
merging, that includes:
    - Move datatype allocation into single internal routine, instead of
        duplicated code that was spread out in a dozen or so places.
    - Clean up guts of object header routines (H5O_*) to allow for some of
        the fancieroperations that need to be performed on groups, along with
        some general improvements.
    - Added a new error code
    - Some minor cleanups in other code....

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Linux 2.4
    Mac OS X
2005-09-12 01:02:55 -05:00
Albert Cheng
966f5f4236 [svn-r11381] Purpose:
bug fix.

Description:
In Janus (Tflops), the test would seg-fault in production (compiled
with -O).  If compiled with -O0, it would be okay.  Track down the
problem to the for loop index i & j being declared with type hsize_t
which is usually unsigned long int.  Guess the Tflop compiler has
a bug in optimization that could not handle unsigned int as for loop
index.

Solution:
Since it is no need for i & j to be hsize_t and it makes more
sense to have them with type int.  Changed them to int type.

Platforms tested:
Passed in tflops and colonelk here.
2005-09-09 00:05:57 -05:00
Elena Pourmal
a949d226d8 [svn-r11374] Purpose: Maintenance/improvement
Description: Added support for "big" REAL and DOUBLE PRECISION types.

Solution:

Platforms tested: heping with g95 (-r8, -d8)
                  mir with ifc (-r16, -r8)

Misc. update:
2005-09-08 14:37:43 -05:00
Elena Pourmal
4a998f8a86 [svn-r11373] Purpose: Maintenance/improvement
Description: Fixeda typo in an error message

Solution:

Platforms tested: heping with g95 (-r8, -d8)
                  mir with ifc (-r16, -r8)

Misc. update:
2005-09-08 14:37:05 -05:00
Elena Pourmal
244d72b6f5 [svn-r11372] Purpose: Maintenance/improvement
Description: Added support for "big" REAL and DOUBLE PRECISION
             datatypes (i.e. sizes of Fortran real and double precision
             may be 8 and/or 16 bytes; usually specified by compilers
             flags like -r8, -r16, -d8, etc.)

Solution: Added code to generate all necessary datatypes on a fly.

Platforms tested: heping with g95 (-r8, -d8)
                  mir with ifc (-r16, -r8)
                  Note: multi file test failed when REAL is 128 bit.
                        I will address this later.

Misc. update:
2005-09-08 14:36:24 -05:00
Elena Pourmal
a0c61b514b [svn-r11370] Purpose: Typo fix
Description: Fixed a typo introduced by my previous check in

Solution:

Platforms tested: heping

Misc. update:
2005-09-07 18:19:38 -05:00
Elena Pourmal
64fdc49ab9 [svn-r11369] Purpose: Improvement/maintenance
Description: Added code to generate sizes of Fortran REAL and
             DOUBLE PRECISION types. This will "almost" eliminate
             H5f90i.h file that defines C stubs datatypes.

Solution:

Platforms tested: heping with g95 (-r8, -d8 and default settings)

Misc. update:
2005-09-07 17:24:18 -05:00
Fang Guo
ae138025bb [svn-r11368] Purpose:
Maintenance on Windows
Description:
Add definition for int <-> float conversion exception
Solution:

Platforms tested:
MSVS 6.0 on Windows XP
Misc. update:
2005-09-07 17:17:04 -05:00
Albert Cheng
c037d88f3f [svn-r11366] Purpose:
upgrade.

Description:
A new feature md5 is added to the release script.  Upgrade snapshot
to include md5 in the snapshot release process.

Platforms tested:
No test since the change is pretty simple and it is hard to test
without really doing a snapshot release.

Misc. update:
2005-09-07 17:02:51 -05:00
Fang Guo
629c693d82 [svn-r11365] Purpose:
Add more assertion error check
Description:

Solution:

Platforms tested:
heping
Misc. update:
2005-09-07 16:44:16 -05:00
Leon Arber
3280e08b9b [svn-r11364] Purpose:
Bug fix

Description:
Incorrectly terminated the received string in getenv_all

Solution:
Tasks would incorrectly terminat the environment string they received from the
root task in getenv_all.

They did the equivalent of:

env[strlen(str) + 1] = '\0'.

This resulted in a single "garbage" character inserted
at the end of the string.  This wasn't noticed until now because it seems that on most
platforms this garbage character was a 0 anyway.

This has been corrected to;

env[strlen(str)] = '\0'.


Platforms tested:
Red Storm (where the bug was discovered)
heping (pp)

Misc. update:
2005-09-07 16:19:06 -05:00
James Laird
4f52992c86 [svn-r11363] Purpose:
Updated release notes

Description:
Added md5 checksumming and configure flag checking to release notes.

Platforms tested:
Change only to release notes
2005-09-07 16:16:02 -05:00
James Laird
c9d2d8f74c [svn-r11362] Purpose:
Feature - md5 checksum

Description:
Added md5 checksumming to snapshot releases.  When bin/release is run,
it will by default create a .tar archive and a .md5 checksum of that
archive in the destination directory.

Solution:
md5 is now a method in bin/release, along with the various ways to compress
hdf5.  The checksum is always of the .tar archive, even when other forms
of compression are used (this is so that a given release always has only
one checksum, for simplicity).

Platforms tested:
mir (change to bin/release only)

Misc. update:
2005-09-07 15:20:37 -05:00
James Laird
edfb6b70e2 [svn-r11361] Purpose:
Bug fix

Description:
Cygwin was failing (seemingly only when I built in parallel) when it couldn't
find or build H5detect.
Fixed a dependency.

Solution:
H5init.c was depending on H5detect instead of H5detect$(EXEEXT).  On Cygwin,
applications end in .exe !

Platforms tested:
mir, cygwin (finrod)
2005-09-07 13:51:35 -05:00
Elena Pourmal
8acac62da8 [svn-r11360] Purpose: SX-6 port
Description: SX-6 doesn't need to use ranlib.

Solution: Set RANLIB variable to ":" (suggested by James)

Platforms tested: SX-6

Misc. update:
2005-09-07 12:28:31 -05:00
Elena Pourmal
181102ff74 [svn-r11359] Purpose: Bug fix/maintenance/new feature
Description: Currently we are trying to match excatly Fortran and C types.
             Unfortunately, some systems (SX-6) provide compiler switches
             (-ew) that make ALL Fortran types to be at least of size 8.
             As a result, Fortran library cannot be compiled.

Solution: Allow INTEGER(HID_T) type to be 8 bytes if necessary. The values
          of this type are originated in the C library and can be safely
          passed back and forth. Please note that we cannot do the same
          for INTEGER(SIZE_T) type. Fortunately there is a switch
          that allows size_t be 8 bytes for both C and Fortran compilers.


Platforms tested: It is a minor change, therefore SX-6 only;
                  daily tests will do the rest :-)

Misc. update:
2005-09-07 11:06:49 -05:00
Elena Pourmal
436b9db1fa [svn-r11357] Purpose: SX-6 port
Description: Brought back changes from SX-6.

Solution:

Platforms tested: SX-6 NEC America

Misc. update:
2005-09-06 16:35:37 -05:00
Raymond Lu
668d580766 [svn-r11356] Purpose: Update document.
Misc. update:  Information about H5Tis_hard().
2005-09-06 13:44:12 -05:00
Raymond Lu
7ef46b524b [svn-r11355] Purpose: A new API function and its test.
Description:  Put in a new API funciton, H5Tis_hard.  It checks whether
the conversion function from a native type to another native type is a
compiler (hard) conversion.  Also checked a test in test/dt_arith.c.


Platforms tested: h5committest and fuss.
2005-09-06 13:39:46 -05:00
James Laird
9b1828ffd0 [svn-r11353] Purpose:
Bug fix

Description:
Configure should now throw an error when C++ or threadsafe is enabled
and a parallel compiler is being used.


Platforms tested:
sleipnir and modi4
Tested
--enable-cxx --enable-parallel --disable-cxx
--enable-cxx --disable-parallel
cases in particular.

Misc. update:
2005-09-06 11:57:05 -05:00
Albert Cheng
f0bb265b2e [svn-r11350] Purpose:
Bug fix.

Description:
The incompatibility of enable-parallel and enable-cxx was not correctly
coded.  It would complained even for the case of
    ./configure --enable-cxx --disable-parallel.

Solution:
Changed it to use "$enable_XYZ" = "yes".  Fixed the same for the
enable-threadsafe checking too.

Platforms tested:
tested in heping.

Misc. update:
2005-09-05 23:11:33 -05:00
Albert Cheng
c12eeffd9f [svn-r11349] Purpose:
Bug fix.

Description:
Some tests showed the filesize was not as expected.  But the error was
intermittent.  This was a racing condition as some processes finish
extend_chunked_dataset() sooner than others and return to the main
body which proceeds to call the next test which also uses the same
test data file and alters it.  That messes up the "slower" processes
which then see unexpected filesize.

Also, the routine create_chunked_dataset() which creates test data file
actually was executed by all processes.  That is wrong.

Solution:
Added a barrier at the end of extend_chunked_dataset to make sure all
processes are done with the test data file before returning.

Changed create_chunked_dataset such that only one process would create
the test data file.  The rest does nothing but just wait for it to finish.

Platforms tested:
Tested in TG-NCSA in which the errors were detected.

Misc. update:
2005-09-05 15:23:02 -05:00
Quincey Koziol
1fa5f8bccb [svn-r11346] Purpose:
Bug fix & code cleanup

Description:
    Fix problem with detecting precision overflows in a more portable way.
(I was depending on the compiler not removing some temporary variables, which
was a bad bet... :-)

    Also, hoist the checking for the exception handling routine out of the
inner conversion loop, which should speed up conversions which don't have an
exception handling routine defined.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    h5committest
2005-09-03 17:05:20 -05:00
Quincey Koziol
01a3d9d780 [svn-r11345] Purpose:
Bug fix & code cleanup

Description:
    Address most of datatype conversion exception handling bug that Ed
Hartnett reported.  (He's reported a different problem now, but we're closer
at least).

    Also, condense exception handling #ifdef's into one location instead of
spread out in so many places.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-09-03 12:11:00 -05:00
Quincey Koziol
4aa86e2297 [svn-r11344] Purpose:
Bug fix

Description:
    Allow threadsafe & C++ to be enabled together - its working fine on
sleipnir.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
2005-09-03 08:58:24 -05:00
James Laird
8d9d70388e [svn-r11341]
Purpose:
Bug fix

Description:
H5Tinit.c wasn't being cleaned properly.

Solution:
Clean H5Tinit.c.

Platforms tested:
sleipnir only (very minor change)
2005-09-02 11:02:28 -05:00
Albert Cheng
11cfb28f54 [svn-r11340] Purpose:
Big data set test was default off and rarely tested. Changed it to default
on so that it gets tested.

Platforms tested:
Heping PP and Copper pp.
2005-09-02 09:56:32 -05:00
Albert Cheng
40a1e57caa [svn-r11339] Purpose:
Bug fix #281

Description:
Committed a wrong copy in the previous checkin.

Solution:
Checked in the right one and did some code cleanup, rearrangment.

Platforms tested:
heping pp.

Misc. update:
2005-09-02 09:44:40 -05:00
Quincey Koziol
3eea9abb5f [svn-r11338] Purpose:
Bug fix

Description:
    Check in fix that John found for bug in H5FD_extend() code - adjust
beginning as well as size of free block when "extending" another block of
space in the file.

Platforms tested:
    FreeBsd 4.11 (sleipnir)
    Too minor to require h5committest
2005-09-01 22:11:25 -05:00
Quincey Koziol
90103afad6 [svn-r11337] Purpose:
Code cleanup

Description:
    Changed some scale+offset filter symbols from H5_SO_... -> H5Z_SO_...
to indicate that they are in the H5Z package.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-09-01 17:46:16 -05:00
James Laird
fc90c784e1 [svn-r11336] Purpose:
Bug fix

Description:
A typo made configure throw an error if only C++ was enabled.  Fixed.

Platforms tested:
mir
2005-09-01 16:09:22 -05:00
James Laird
30c61d0f25 [svn-r11335] Purpose:
Bug fix

Description:
configure used 'uname -o' to detect Cygwin.  This command is fine on
Cygwin, but causes errors on some other platforms (sol).
Fixed this.

Solution:
Used 'uname' with no -o option to identify Cygwin.

Platforms tested:
mir, cygwin (on finrod)
2005-09-01 15:38:18 -05:00
James Laird
c7808fa57e [svn-r11334] Purpose:
Feature: checking configure flags (bug #90)

Description:
Some configure flags don't work together.  Configure now exits with
a sensible error message if one of these combinations is specified.

Solution:
The following flags will throw errors:
--enable-cxx and --enable-parallel
--enable-cxx and --enable-threadsafe
--enable-threadsafe and --enable-parallel
--enable-fphdf5 and --enable-fortran

Platforms tested:
mir, modi4, heping

Misc. update:
2005-09-01 15:31:46 -05:00
Raymond Lu
a5f1aa713f [svn-r11333] Purpose: Change configure's default.
Description:  Changed configure's default disable-dconv-exception and
disable-dconv-accuracy back to enable-dconv-exception and
enable-dconv-accuracy.  The test has been finished.


Platforms tested: fuss - tested before.
2005-09-01 13:48:00 -05:00
Raymond Lu
572688a4e5 [svn-r11332] Purpose: Minor Change to Macro Names
Description:  Changed the names of macros defined in H5Tpkg.h from
H5T_CONV_INTERIM_XXX_XXX to H5T_CONV_INTERNAL_XXX_XXX to be more
descriptive.


Platforms tested: fuss - simple change
2005-09-01 13:33:32 -05:00
James Laird
9d452584c6 [svn-r11331] Purpose:
Bug fix

Description:
Replaced 8 spaces with tabs in c++/examples/Makefile.am.

Platforms tested:
mir, sleipnir
2005-09-01 11:39:37 -05:00
James Laird
2733f697b6 [svn-r11330] Purpose:
Bug fix

Description:
Errors on sol may have been due to "make clean" being run both
manually and by automake.  Removed the manual run.
Also cleaned c++/examples/ii_files directory created by some compilers
(e.g., on modi4).

Solution:
This does mean that examples directories will not be cleaned by
'make clean'.

Platforms tested:
sol, mir, heping, modi4
2005-08-31 18:12:15 -05:00
MuQun Yang
926b953316 [svn-r11329] Purpose:
code changes due to the change of scaleoffset API.

Description:

Solution:

Platforms tested:

Misc. update:
2005-08-31 17:15:10 -05:00
MuQun Yang
c944a93983 [svn-r11328] Purpose:
code change due to the change of scale offset filter

Description:

Solution:

Platforms tested:

Misc. update:
2005-08-31 17:14:16 -05:00
MuQun Yang
c396fb7c06 [svn-r11327] Purpose:
Updating the filter based on H5Pset_scaleoffset API change.

Description:
Still more changes are needed for the filter for floating-point.

Solution:

Platforms tested:

Misc. update:
2005-08-31 17:13:13 -05:00
MuQun Yang
71e345cd4e [svn-r11326] Purpose:
Updating scale offset filter.

Description:
Using enum to represent scale_offset type.
Change the order of parameters of H5Pset_scaleoffset.

Solution:

Platforms tested:
sol 2.9, Liunx 2.4, AIX 5.1

Misc. update:
2005-08-31 17:10:54 -05:00