Commit Graph

22583 Commits

Author SHA1 Message Date
Allen Byrne
2384a73176
Develop gh doxy (#3041)
* Add doxygen generation to daily-build and main

* Add doxygen option to matrix
2023-06-05 16:27:40 -07:00
Scot Breitenfeld
66cee72768
Print out the VOL connector being used in the ASYNC test (#3016)
* Print out the VOL connector being used in the ASYNC test
* Add h5pget_vol_cap_flags_f with test
2023-06-05 09:59:51 -07:00
Jan-Willem Blokland
71684199d5
CMake: (fix) Szip / libaec filter (#3035)
* CMake: (fix) Szip / libaec filter

- Fixed the cmake configuration for the filter Szip / libaec.
  Now, the decoding of this filter is properly configured and
  included in the HDF5 library.

* CMake: (fix) Zlib filter

- Improved the cmake configuration for the filter zlib.
2023-06-05 11:20:50 -05:00
Dana Robinson
7ecf1d09af
Convert H5F haddr_t macros to H5 (#3039)
Several macros for handling haddr_t values exist in H5Fprivate.h
and have H5F prefixes, even though they have nothing to do with
a particular file (e.g., H5F_addr_lt()).

These macros have been moved to H5private.h and renamed to have
an H5 prefix.

Affected macros:
    H5F_addr_overflow
    H5F_addr_defined
    H5F_addr_eq
    H5F_addr_ne
    H5F_addr_lt
    H5F_addr_le
    H5F_addr_gt
    H5F_addr_ge
    H5F_addr_cmp
    H5F_addr_overlap

H5F_addr_pow2 was unused and removed instead of converted.
2023-06-05 08:04:56 -07:00
Dana Robinson
e3559c7b64
Add casts to type conversion to fix long dbl bug (#3038)
If a user buffer is misaligned in the type conversion code, memcpy
could fail if the call is SSE-optimized by the compiler. This change
adds uint8_t * casts so the compiler won't make optimistic assumptions
about buffer alignment.
2023-06-03 07:23:35 -07:00
Dana Robinson
81bc34ac4c
Only pass efc pointer to H5F__efc_open (#3026)
The H5F__efc_open() API call only needs the efc pointer, so there is
no need to pass the entire file struct in.
2023-05-30 08:33:52 -07:00
Dana Robinson
962593fb0a
Remove unused H5F_EN|DECODE_OFFSET macros (#3027) 2023-05-30 08:33:22 -07:00
Dana Robinson
40324e0c31
Cleans up Java JNI warnings and add java to -Werror checks (#2383) 2023-05-27 09:49:37 -07:00
jhendersonHDF
79bb60c3f6
API test updates (#3018)
* Remove macros from api tests (#2929)
* Remove macros and undefined callbacks (#2959)
* Remove remaining macros from H5_api_tests_disabled.h (#2968)
* Put some vol capability checks in testpar tests and remove remaining warnings (#2995)
* API tests datatype generation cleanup
* Clean up API tests' random datatype generation and fix bug with enum
datatype generation
* Init parallel API tests with MPI_THREAD_MULTIPLE
* HDF5 API tests - Check VOL connector registration
* Determine whether a VOL connector failed to load before running API
tests
* Cleanup some usages of H5VL_CAP_FLAG_CREATION_ORDER in API tests
* Remove some now-unused macros from H5_api_tests_disabled.h
* Enable HDF5 API tests by default
* Implement CMake option to install HDF5 API tests
* Check for invalid AAPL from H5Acreate
* Enable building of VOL connectors alongside HDF5 in CMake
* Prepend CMake VOL URL option indices with 0s so they come in order
* Don't turn on API tests by default yet
* Document VOL connector FetchContent functionality
* Add release note for API test updates
* Only install testing library if API tests are installed
* Fix grammar
2023-05-26 13:29:02 -07:00
Allen Byrne
77e64e0df4
correct warning ignore match for zlib (#3021) 2023-05-26 13:27:19 -07:00
jhendersonHDF
067192eb30
Fix release version for some H5Pfapl routines (#3023) 2023-05-26 13:26:34 -07:00
Allen Byrne
248045e3e0
Correct name of fetch content variable name (#3020) 2023-05-26 09:20:57 -07:00
Allen Byrne
00e6c2d221
Remove most unused options which are defaulted #2998 (#3019)
* Remove most unused options which are defaulted #2998

* Fix property list references
2023-05-26 09:19:32 -07:00
Scot Breitenfeld
e08c822c6f
Fixed Fortran Doxygen warnings (#3017)
Fixes Fortran doxygen warnings, #2998
2023-05-26 06:29:38 -07:00
Dana Robinson
25457d369d
Bump GitHub Autotools actions to gcc-12 (#3015) 2023-05-25 14:07:59 -07:00
Dana Robinson
8dd7a016b1
Suppress vfd.c test warning (#3014) 2023-05-25 13:47:30 -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
1e52bc27ee
Fix assert in Debug Windows Java JNI (#3012)
Use of an uninitialized H5L_info2_t struct caused some JNI tests to
raise asserts, causing a dialog box to be emitted, which would hang
automated tests.

Initializing the struct fixes the problem.

This change also re-enables tests in the Windows Debug GitHub actions.
2023-05-25 10:47:46 -07:00
Allen Byrne
018ca4e37f
Develop release workflow (#3002)
Implement (pre)release workflow for daily build
2023-05-25 10:24:54 -07:00
Dana Robinson
27eee8330a
Remove src/.indent.pro (#3008)
There is no need for this since we use clang-format

Fixes #3004
2023-05-25 08:41:44 -07:00
Dana Robinson
b50225e8b2
Add release note for #2999 (#3009) 2023-05-25 07:53:15 -07:00
Dana Robinson
21c1af2707
Only run ttsafe in thread-safe GitHub actions (#2777)
Also fixes broken thread-safety testing (due to a typo in the GitHub action checks)
2023-05-25 05:27:11 -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
Dana Robinson
68abd201b2
Fix missing/misplaced h5_reset calls (#3001)
Fixes failures when running tests after building with thread-safety
w/ code stacks on.

Fixes #2990
2023-05-23 13:47:24 -07:00
bazimo
ee91960567
Fix FUNC_ENTER macro mismatch in H5VL_object_inc_rc() (#2991) 2023-05-23 11:03:26 -07:00
Scot Breitenfeld
545484c743
fixed GNU 4.8.5 compilation issue with C_LOC and strings (#2996) 2023-05-23 11:16:43 -05:00
Scot Breitenfeld
a888742959
Updated H5Ovisit_f and H5Ovisit_by_name_f wrappers internals. (#2987)
* * Removed C wrappers for H5Ovisit_f and H5Ovist_by_name_f, modifying the Fortran source accordingly.

* The intent for op_data was declared INOUT, even though the pointer address INTENT is, in actuality, IN. gfortran was optimizing out op_data in tests where the values were repeatedly reset to the same value. The values were reset in the test because the data the pointer targeted was updated in the callback.

* Made use of the 'verify' function to check value correctness.

* changed to useing INTEGER(C_INT) instead of C_BOOL, updated the documentation
2023-05-22 16:17:14 -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
Dana Robinson
5c2e434dc6
Fix 'datatype' misspellings ('dataype') (#2984) 2023-05-19 09:05:23 -07:00
jhendersonHDF
d7cb8aca5b
Add test for HDstrcasestr macro (#2115) 2023-05-19 09:05:01 -07:00
Diogo Teles Sant'Anna
14edcfaffd
ci: set minimal permissions on GitHub Workflows (#2980)
Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
2023-05-18 16:08:10 -05:00
Scot Breitenfeld
482920808f
Fixes failures with gfortran 4.8 (#2979) 2023-05-18 16:07:24 -05:00
Allen Byrne
dc3ef6055f
Change defaults of standard filters. (#2927) 2023-05-18 16:05:20 -05:00
Larry Knox
6e5c4a5c58
Remove version specific examples from README_HPC. (#2613) (#2975) 2023-05-17 17:38:59 -05:00
Allen Byrne
c961ef98ff
Add h5copy help test and verify consistency (#2902)
* Add autotools test for help
2023-05-17 10:41:01 -05:00
Scot Breitenfeld
560e7d6728
Updated INTENT to IN for C_PTR types dummy args. (#2961)
* Changed to INTENT(IN) for C_PTR dummy args since it refers to whether C_PTR can be changed and does not relate to the INTENT state of the target.
2023-05-17 10:38:31 -05:00
Scot Breitenfeld
e1f346377f
added missing H5ES function DLLs (#2969) 2023-05-17 10:34:10 -05:00
Allen Byrne
c6edc887bc
Change UBSAN for undefined instaed of address (#2964) 2023-05-17 10:30:45 -05:00
Quincey Koziol
940bdafacb
Remove unnecessary fields from cache structs (#2951)
* Remove unnecessary 'magic' field from cache structs

Signed-off-by: Quincey Koziol <quincey@koziol.cc>

* Committing clang-format changes

---------

Signed-off-by: Quincey Koziol <quincey@koziol.cc>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-15 13:54:58 -05:00
Scot Breitenfeld
20e72f98b2
addresses gfortran issue https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109861 (#2957) 2023-05-15 13:29:51 -05:00
jhendersonHDF
977884a575
Fix warning in cache_common.c (#2952) 2023-05-14 22:12:28 -05:00
mattjala
17750ea9c2
Warn about changing collections during iteration (#2950)
Resolves #92
2023-05-14 22:09:58 -05:00
mattjala
364145f144
Prevent buffer overrun in H5S_select_deserialize (#2931)
* Prevent buffer overrun in H5S_select_deserialize

The call to H5S_select_deserialize from H5S_decode doesn't have
the buffer size available to it, so to allow decoding there
I set it to assume a max size buffer for now.

Making the buffer size known in H5S_decode could be done by
modifying the external API's H5Sdecode, or splitting H5Sdecode
into two functions using a macro (similar to H5Sencode), with the
macro taking one argument and assuming a max buffer size.

* Conditional buffer check in H5S_select_deserialize

Moved and renamed a macro for only checking buffer overflow when
buffer size is known from H5Odtype.c to H5private.h,
so it can be used throughout the library.

Also silenced some build warnings about types.
2023-05-12 13:22:55 -07:00
Quincey Koziol
0d4a12d7cd
Move functions into more focused source code modules (#2936)
* Move functions into more focused source code modules, along with a small #
of directly secondary effects.  No actual changes to the contents of any
moved routines.

Signed-off-by: Quincey Koziol <quincey@koziol.cc>

* Committing clang-format changes

---------

Signed-off-by: Quincey Koziol <quincey@koziol.cc>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-12 14:52:11 -05:00
Dana Robinson
2a2c2d9ebe
Bump Autoconf version to 2.71 (#2944)
Required for building with Intel's oneAPI
2023-05-11 17:04:09 -07:00
Allen Byrne
909dcc420d
Update action uses version (#2937) 2023-05-11 08:18:54 -07:00
Quincey Koziol
1a89fa23fc
More code duplication reduction (#2930)
* Add failure value where it's missing from 1+ macros.  Clean up
whitespace / continuation characters ('\').  Made hash-table macros generic
for use in both the package header and test header.  Remove duplicated
copy & pasted macros (by hoisting difference into #ifdef'd macro).
Updated and re-flowed comments to read better.

Also clean up a few compiler warnings in production builds.

Signed-off-by: Quincey Koziol <quincey@koziol.cc>

* Committing clang-format changes

* Remove unused variable warning in H5C.c (#2844)

* Remove trailing /* NDEBUG */ comment from #endif's

* Committing clang-format changes

---------

Signed-off-by: Quincey Koziol <quincey@koziol.cc>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-09 15:19:18 -05:00
H. Joe Lee
80cf406647
Remove unused variable warning in H5C.c (#2844) 2023-05-09 09:11:29 -07:00
Quincey Koziol
0bbed84be2
Reduce code duplication in macros (#2914)
* Reduce code duplication in macros

Signed-off-by: Quincey Koziol <quincey@koziol.cc>

* "insert" -> "remove" in error string

Signed-off-by: Quincey Koziol <koziol@lbl.gov>

* Remove unused macro also

Signed-off-by: Quincey Koziol <quincey@koziol.cc>

---------

Signed-off-by: Quincey Koziol <quincey@koziol.cc>
Signed-off-by: Quincey Koziol <quincey@koziol.cc>
2023-05-08 13:12:41 -05:00
Dana Robinson
930a91b587
Public header cleanup (#2923)
Removes unnecessary headers and adds missing headers, ensuring
that headers can be included independently and in any order.

Fixes #2789
2023-05-06 18:12:32 -07:00