Skip to content

Commit

Permalink
55 pdi packages fail to build on jammy trixie (#529)
Browse files Browse the repository at this point in the history
* fix error if BUILD_HDF5_PARALLEL=OFF

* update changelog and copyright, fix #55 [pdidev/pkgs]

* Update plugins/decl_hdf5/dataset_op.cxx

Co-authored-by: Benoit Martin <[email protected]>

* fix changelog

* add comment in AUTHORS for this issue

---------

Co-authored-by: Benoit Martin <[email protected]>
  • Loading branch information
jmorice91 and benoitmartin88 authored Feb 5, 2025
1 parent 6415fbf commit 6414b8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/decl_hdf5/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Julien Bigot - CEA ([email protected])

Jacques Morice - CEA ([email protected])
* contribution to feature improvement, validation
* fix issue [#55](https://github.com/pdidev/pkgs/issues/55)

Yacine Ould Rouis - CNRS ([email protected])
* contribution to feature design, validation
Expand Down
4 changes: 3 additions & 1 deletion plugins/decl_hdf5/dataset_op.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (C) 2015-2024 Commissariat a l'energie atomique et aux energies alternatives (CEA)
* Copyright (C) 2015-2025 Commissariat a l'energie atomique et aux energies alternatives (CEA)
* Copyright (C) 2021-2022 Institute of Bioorganic Chemistry Polish Academy of Science (PSNC)
* All rights reserved.
*
Expand Down Expand Up @@ -214,11 +214,13 @@ void Dataset_op::fletcher(Context& ctx, Expression value)
void Dataset_op::execute(Context& ctx, hid_t h5_file, bool use_mpio, const unordered_map<string, Datatype_template_sptr>& dsets)
{
Raii_hid xfer_lst = make_raii_hid(H5Pcreate(H5P_DATASET_XFER), H5Pclose);
#ifdef H5_HAVE_PARALLEL
if (use_mpio) {
if (0 > H5Pset_dxpl_mpio(xfer_lst, m_mpio)) {
handle_hdf5_err();
}
}
#endif
if (m_direction == READ) {
do_read(ctx, h5_file, xfer_lst);
} else {
Expand Down

0 comments on commit 6414b8a

Please sign in to comment.