-
Notifications
You must be signed in to change notification settings - Fork 135
hdfgroup.org/HDF5 #2314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
hdfgroup.org/HDF5 #2314
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6c16382
hdfgroup.org/HDF5
and-ri 39b6529
--libdir
and-ri da9ef44
maybe --enable-shared=no
and-ri 7032c85
sed
and-ri 59319fa
HDF5_ROOT & additional test
and-ri 914b6c4
sed
and-ri 73b6fb1
maybe sed -i ''
and-ri 7eb6b14
modified: projects/hdfgroup.org/HDF5/package.yml
and-ri 3ed80a1
sed
and-ri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| distributable: | ||
| url: https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-{{version.marketing}}/hdf5-{{version}}/src/hdf5-{{version}}-2.tar.bz2 | ||
| strip-components: 2 | ||
|
|
||
| versions: | ||
| - 1.14.1 | ||
|
|
||
| dependencies: | ||
| gnu.org/gcc: '*' | ||
| dkrz.de/libaec: '*' | ||
| linux: | ||
| zlib.net: '*' | ||
|
|
||
| runtime: | ||
| env: | ||
| HDF5_ROOT: '{{prefix}}' | ||
|
|
||
| build: | ||
| dependencies: | ||
| tea.xyz/gx/make: '*' | ||
| gnu.org/autoconf: '*' | ||
| gnu.org/automake: '*' | ||
| gnu.org/libtool: '*' | ||
|
|
||
| script: | ||
| - autoreconf --force --install --verbose | ||
| - ./configure $ARGS | ||
| - make --jobs {{hw.concurrency}} install | ||
| - sed -i'' -e 's|prefix="{{prefix}}"|prefix="${HDF5_ROOT}"|g' {{prefix}}/bin/h5cc {{prefix}}/bin/h5c++ {{prefix}}/bin/h5fc | ||
|
|
||
| env: | ||
| HDF5_ROOT: '{{prefix}}' | ||
| ARGS: | ||
| - --prefix="$HDF5_ROOT" | ||
| - --disable-dependency-tracking | ||
| - --disable-silent-rules | ||
| - --enable-build-mode=production | ||
| - --enable-fortran | ||
| - --enable-cxx | ||
| - --with-szlib={{deps.dkrz.de/libaec.prefix}} | ||
| linux: | ||
| ARGS: | ||
| - --with-zlib={{deps.zlib.net.prefix}} | ||
|
|
||
| provides: | ||
| - bin/h5c++ | ||
| - bin/h5cc | ||
| - bin/h5clear | ||
| - bin/h5copy | ||
| - bin/h5debug | ||
| - bin/h5delete | ||
| - bin/h5diff | ||
| - bin/h5dump | ||
| - bin/h5fc | ||
| - bin/h5format_convert | ||
| - bin/h5import | ||
| - bin/h5jam | ||
| - bin/h5ls | ||
| - bin/h5mkgrp | ||
| - bin/h5perf_serial | ||
| - bin/h5redeploy | ||
| - bin/h5repack | ||
| - bin/h5repart | ||
| - bin/h5stat | ||
| - bin/h5unjam | ||
| - bin/h5watch | ||
|
|
||
| test: | ||
| - h5cc test.c | ||
| - ./a.out | grep {{version}} | ||
| - h5fc test.f90 | ||
| - ./a.out | grep {{version}} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #include <stdio.h> | ||
| #include "hdf5.h" | ||
| int main() { | ||
| printf("%d.%d.%d\\n", H5_VERS_MAJOR, H5_VERS_MINOR, H5_VERS_RELEASE); | ||
| return 0; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| use hdf5 | ||
| integer(hid_t) :: f, dspace, dset | ||
| integer(hsize_t), dimension(2) :: dims = [2, 2] | ||
| integer :: error = 0, major, minor, rel | ||
|
|
||
| call h5open_f (error) | ||
| if (error /= 0) call abort | ||
| call h5fcreate_f ("test.h5", H5F_ACC_TRUNC_F, f, error) | ||
| if (error /= 0) call abort | ||
| call h5screate_simple_f (2, dims, dspace, error) | ||
| if (error /= 0) call abort | ||
| call h5dcreate_f (f, "data", H5T_NATIVE_INTEGER, dspace, dset, error) | ||
| if (error /= 0) call abort | ||
| call h5dclose_f (dset, error) | ||
| if (error /= 0) call abort | ||
| call h5sclose_f (dspace, error) | ||
| if (error /= 0) call abort | ||
| call h5fclose_f (f, error) | ||
| if (error /= 0) call abort | ||
| call h5close_f (error) | ||
| if (error /= 0) call abort | ||
| CALL h5get_libversion_f (major, minor, rel, error) | ||
| if (error /= 0) call abort | ||
| write (*,"(I0,'.',I0,'.',I0)") major, minor, rel | ||
| end |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about the versions. On the page https://support.hdfgroup.org/ftp/HDF5/releases/, there is no list of all versions, only folders with {{version.marketing}}. And the latest version has an additional
-2in the file name (1.14.1-2.tar.bz2), while the others don't (1.14.0.tar.bz2,1.13.3.tar.bz2).There is only one version available on GitHub (
hdf5-1_14_1-2).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, they don't make it easy. Might be the best we can do for now.