Commit Graph

991 Commits

Author SHA1 Message Date
Allen Byrne
fe49c075ac
Fixes for CI and presets (#3853) 2023-11-15 17:31:26 -06:00
Dana Robinson
e807dee0fd
Add CMake long double cross-compile defaults (#3683)
HDF5 performs a couple of checks at build time to see if long double
values can be converted correctly (IBM's Power architecture uses a
special format for long doubles). These checks were performed using
TRY_RUN, which is a problem when cross-compiling.

These checks now use default values appropriate for most non-Power
systems when cross-compiling. The cache values can be pre-set if
necessary, which will preempt both the TRY_RUN and the default.

Affected values:
    H5_LDOUBLE_TO_LONG_SPECIAL      (default no)
    H5_LONG_TO_LDOUBLE_SPECIAL      (default no)
    H5_LDOUBLE_TO_LLONG_ACCURATE    (default yes)
    H5_LLONG_TO_LDOUBLE_CORRECT     (default yes)
    H5_DISABLE_SOME_LDOUBLE_CONV    (default no)

Fixes GitHub #3585
2023-11-14 20:36:47 -08:00
Allen Byrne
a6e610eb63
Correct ENV variables (#3841) 2023-11-10 22:36:06 -06:00
jhendersonHDF
64e239c4b6
Set NVHPC maximum optimization level to -O1 for now (#3800)
* Set NVHPC maximum optimization level to -O1 for now

Compiling HDF5 with NVHPC 23.5 - 23.9 results in test failures in
4 different test files that need to be resolved. Since those tests
pass with an optimization level of -O1 (and -O0) and it is currently
unclear whether the test failures are due to issues in HDF5 or issues
in the 'nvc' compiler, set the maximum optimization level for NVHPC
to -O1 until the test failures are resolved.

* Disable nvhpc Java testing in CMake and amend known issues

* Re-enable testing of Autotools nvhpc
2023-11-01 14:41:46 -05:00
Allen Byrne
a654b2c1c5
Use the current toolchain for examples as default (#3810) 2023-11-01 07:15:19 -05:00
Allen Byrne
44ec53ec48
Remove CDASH_LOCAL variable reference (#3796) 2023-10-30 12:11:07 -05:00
Allen Byrne
97a6efbf8a
Organize CMake config features like libsettings (#3725) 2023-10-19 15:24:50 -07:00
Allen Byrne
2bb6619528
Develop intel split (#3722)
* Split intel compiler flags into sub-folders
* Update Intel options for warnings
* Mostly CMake, Autotools needs additional work
2023-10-19 15:17:20 -07:00
Allen Byrne
29c1c02300
Some corrections and fix for plugins (#3712) 2023-10-19 08:01:02 -05:00
Allen Byrne
65e1bd8ce9
Add NVidia compiler support and CI (#3686) 2023-10-18 12:44:42 -07:00
jhendersonHDF
9557256819
Sync changes that are only in 1.14 branch (#3704) 2023-10-17 21:54:40 -07:00
jhendersonHDF
fc788559f7
Correct use of set() command with options (#3667) (#3703)
* Correct use of set() command with options

* Force filter off if not found

Co-authored-by: Allen Byrne <50328838+byrnHDF@users.noreply.github.com>
2023-10-17 18:32:31 -07:00
Scot Breitenfeld
85c176247d
Address nagfor exceptions stoppage. (#3658)
* added cmake ieee flag for nagfor

* generalized determining the nag compiler

* fixing some misc. NAG warnings
2023-10-11 15:16:01 -05:00
Allen Byrne
7631015ea4
Use real URLs and updated names for plugins (#3651)
* synchronize TGZ naming convention/usage
2023-10-10 09:30:19 -05:00
Allen Byrne
283202bc62
Remove old EXTERNALPROJECT_ADD in favor of FETCH_CONTENT (#3624) 2023-10-04 15:51:01 -05:00
jhendersonHDF
34fcb9c5a4
Fix several spelling/grammar issues (#3621) 2023-10-03 09:01:28 -07:00
Allen Byrne
1529ec0ab3
Develop tools move (#3580)
Reorganizes the tools files to support the VOL tests
2023-09-26 13:46:55 -07:00
Allen Byrne
fbb9ad2596
Fix windows cpack with debug (#3525) 2023-09-11 05:45:36 -07:00
Allen Byrne
9c85c6ec08
Fix the Fortran include dir in install config files (#3454) 2023-09-01 21:46:22 -05:00
jhendersonHDF
df6f5d37d8
Output stderr file in CMake testing on failure (#3431) 2023-08-25 22:42:19 -07:00
Dana Robinson
627f7c5e02
Convert some H5MM calls to standard C equivalents (#2382)
* H5MM_calloc and malloc are now mapped to stdlib C calls
* H5MM_memcpy now maps directly to memcpy in release builds
* H5MM_memcpy is still implemented as a separate function that
   checks for buffer overlap when H5MM_DEBUG is defined
   (default w/ debug builds)
* Switches many library memcpy calls to use H5MM_memcpy
* Fixes a possible zero allocation in H5Olayout.c
2023-08-25 13:56:50 -07:00
Allen Byrne
e1602a287b
Re-enable SZIP default to ON in CMake (#3414)
The Autotools were handled in a separate commit
2023-08-23 12:32:09 -07:00
Allen Byrne
ffde055be2
Update presets, examples uncompress, szip cache (#3391) 2023-08-18 16:01:15 -05:00
Allen Byrne
8c6bc4e250
Correct script (#3377) 2023-08-16 07:32:15 -05:00
Larry Knox
bf68e6eb3a
set H5_PAC_C_MAX_REAL_PRECISION default to 0 when cross sompiling with (#3364)
CMake to fix Fortran build failures.
2023-08-09 15:05:57 -07:00
Jan-Willem Blokland
8853687933
CMake: (fix) Threads dependency (#3267)
- If the HDF5 library has been build with either thread-safety or
  subfiling VFD feature on it will have an additional dependency
  on a threading library. This dependency has been added to the
  hdf-config.cmake.in file.
2023-07-24 14:43:43 -05:00
Allen Byrne
800edda078
Option changed but not all references (#3252)
* Option changed but not all references

* remove quotes from binary var
2023-07-18 17:27:12 -05:00
jhendersonHDF
aab497a631
Fix some warnings in developer builds (#3247)
* Fix some warnings in developer builds

* Switch approach to Winline flag
2023-07-18 04:27:07 -07:00
jhendersonHDF
919ce7adc2
Fix CMake builds when Subfiling VFD isn't enabled (#3250)
* Fix CMake builds when Subfiling VFD isn't enabled

* Add Subfiling VFD entry to hdf5-config.cmake.in
2023-07-17 11:47:06 -05:00
jhendersonHDF
26059fc7ab
Subfiling VFD source cleanup (#3241)
* Subfiling VFD source cleanup

Modularize Subfiling CMake code into separate CMakeLists.txt file

Update Mercury util code to latest version and update Copyright

Generate mercury_util_config.h header file instead of using
pre-generated file

Remove unnecessary Mercury functionality

Fix minor warning in Subfiling VFD code

* Remove Mercury headers from Autotools publicly-distributed header list
2023-07-13 12:19:02 -05:00
Allen Byrne
e6a845de20
Adjust presets timeout and fix build script VS versions (#3215) 2023-06-30 13:57:49 -07:00
Dana Robinson
651b20ccb7
Remove checks for setsysinfo, which is unused (#3205)
* Autotools
* CMake
2023-06-29 06:31:50 -07:00
H. Joe Lee
dc7dcc7094
chore: fix grammar (#3207) 2023-06-29 08:23:36 -05:00
Sean McBride
65d8c93470
Many fixes to various compiler warnings (#3124)
* Fixed various -Wmissing-variable-declarations by adding static keyword
* In a few cases, renamed the variable suffix from _g to _s.
* Fixed some -Wmissing-variable-declarations by using different declaration macros
* Fixed various -Wconditional-uninitialized warnings by just initializing variable to zero
* Fixed various -Wcomma warnings
* Fixed clang -Wstrict-prototypes warnings
* Fixed various -Wunused-variable warnings
* Updated some casts to fix the only 3 -Wcast-qual warnings
* Fixed the only -Wsometimes-uninitialized warning
2023-06-18 22:13:38 -07:00
Jan-Willem Blokland
8135cc280c
CMake: (feature) ROS3 and cmake config file. (#3146)
- Added a cmake variable to the hdf5-config.cmake file which
  indicate if the library has been build with or without the
  read-only S3 functionality.
2023-06-16 07:34:06 -07:00
Dana Robinson
fcdd0ab9dc
Revert long double checks (#3133)
* Revert "Remove long double conversion work-arounds (#3097)"

This reverts commit 1e1dac1dac.

* Update comments to reflect newer systems
2023-06-15 09:13:22 -07:00
Dana Robinson
d1ef48e708
Remove unused HD macros (#3120)
* Remove unused HD macros
The library prefixes most C and POSIX API calls with 'HD'. We are
going to start removing these so the code looks like normal C.

This PR removes most of the unused HD markup macros.

* Replace ntohl/ntohs
2023-06-14 08:00:26 -07:00
Dana Robinson
d4605919f9
Remove H5detect and H5make_libsettings (#3104)
Removes H5detect and H5make_libsettings from the build and replaces
their functionality with things that don't affect cross-compiling.

H5detect --> floating-point types are now detected on library load
H5make_libsettings --> Moved functionality to a new H5build_settings.c template file
2023-06-13 08:16:41 -07:00
Dana Robinson
1e1dac1dac
Remove long double conversion work-arounds (#3097)
Several options and public symbols that were provided to paper
      over non-standard long double conversions between signed/unsigned
      long and long long values were removed from the Autotools and
      CMake. These were added twenty years ago, when C99 and 64-bit
      platforms were less common and are no longer needed.

      Autotools:
        --enable-dconv-accuracy

      CMake:
        HDF5_WANT_DATA_ACCURACY

      H5pubconf.h symbols:
        H5_WANT_DATA_ACCURACY
        H5_LDOUBLE_TO_LONG_SPECIAL
        H5_LONG_TO_LDOUBLE_SPECIAL
        H5_LDOUBLE_TO_LLONG_ACCURATE
        H5_LLONG_TO_LDOUBLE_CORRECT
        H5_DISABLE_SOME_LDOUBLE_CONV
2023-06-12 14:12:57 -07:00
Dana Robinson
cedbc2eae0
Remove variable dereferences in CMake (#3080) 2023-06-12 12:15:40 -07:00
Dana Robinson
37990e63c4
Make some changes to configure.ac to suppor MinGW (#3096)
Adds some H5pubconf.h entries and cpp flags for building on MinGW
using the Autotools.

Also updates the Windows-related H5pubconf.h comments to be more
accurate in CMake.
2023-06-11 17:39:15 -07:00
Dana Robinson
44dccb5b15
Don't use -fstdarg-opt with clang-tidy (#3079)
* HDFCompilerFlags: mask -fstdarg-opt with clang-tidy

`clang-tidy` doesn't understand this `-f` flag and errors out.

* Add helpful comment

---------

Co-authored-by: Sean McBride <sean@rogue-research.com>
2023-06-07 16:40:57 -07:00
Dana Robinson
76bc845a2f
Removes old header/library checks (#3078)
In both CMake and the Autotools, remove checks for:
* lstat
* srandom

In CMake, remove checks for:
* string.h
* strings.h
* stdlib.h
We assume these exist. Configure will always check for them (we don't
add any special code to do this), but there's no reason to duplicate
that nonsense in CMake.
2023-06-07 16:40:31 -07:00
Allen Byrne
77e64e0df4
correct warning ignore match for zlib (#3021) 2023-05-26 13:27:19 -07:00
Allen Byrne
248045e3e0
Correct name of fetch content variable name (#3020) 2023-05-26 09:20:57 -07:00
Allen Byrne
90293ccec3
Fix multiConfig variable usage and remove unused CMake vars (#3013) 2023-05-25 11:26:28 -07:00
Dana Robinson
37e0484af5
Update GitHub macOS actions to v13 (#2999)
* Update macOS to 13

* Fix the DYLD_LIBRARY_PATH issue on macOS 12 & 13 + CMake that caused the accum test to fail
2023-05-24 06:05:17 -07:00
Allen Byrne
8186a8ded0
Fix plugin cache variable name (#2988)
* Fix plugin cache variable name
* Prefix plugin project local variables
2023-05-22 18:04:48 -05:00
Allen Byrne
dc3ef6055f
Change defaults of standard filters. (#2927) 2023-05-18 16:05:20 -05:00
Allen Byrne
4b228ec6af
Fix CMake generator expression syntax (#2909) 2023-05-05 15:57:40 -05:00