It seems the C++ option is incompatible with the parallel option when building HDF5 (at least from 1.8.10 to 1.8.15 - both using cmake or autotools).
Is this expected ? Or is it because of some bug ? Is this supposed to be fixed or supported in later release ? If yes, when ? Or is this supposed to be always this way ?
This is because the library-wide lock that we use to enforce thread-safety is not elevated to the language wrappers (or the high-level library, either). We've never closely investigated if there would be problems if a context switch were to occur in the middle of the C++/Fortran/high-level calls, so thread-safety is currently labeled "unsupported" in the wrappers.
You can build with thread-safety and C++ enabled using the --enable-unsupported configure option, but with a potential increase in risk.
It's been a long-term goal of ours to move the lock into the higher-level wrappers, but there's no immediate plans to do this. A sponsor with funding for such a feature would obviously change the situation
Cheers,
Dana Robinson
Software Engineer
The HDF Group
···
-----Original Message-----
From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of houssen
Sent: Friday, October 16, 2015 6:32 AM
To: hdf-forum@lists.hdfgroup.org
Subject: [Hdf-forum] C++ versus parallel
Hello,
It seems the C++ option is incompatible with the parallel option when building HDF5 (at least from 1.8.10 to 1.8.15 - both using cmake or autotools).
Is this expected ? Or is it because of some bug ? Is this supposed to be fixed or supported in later release ? If yes, when ? Or is this supposed to be always this way ?
Whoops! Sorry! I read that as thread-safe, not parallel. It's early here and I haven't made much progress on my coffee.
The lack of parallel and C++ being official supported is, I believe, due to a lack of testing and not due to a particular bug or problem.
Dana Robinson
Software Engineer
The HDF Group
···
-----Original Message-----
From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of houssen
Sent: Friday, October 16, 2015 6:32 AM
To: hdf-forum@lists.hdfgroup.org
Subject: [Hdf-forum] C++ versus parallel
Hello,
It seems the C++ option is incompatible with the parallel option when building HDF5 (at least from 1.8.10 to 1.8.15 - both using cmake or autotools).
Is this expected ? Or is it because of some bug ? Is this supposed to be fixed or supported in later release ? If yes, when ? Or is this supposed to be always this way ?
OK Dana, thanks for the information. Is there a way to force both C++ and parallel options ? (specific option in ccmake ? Modify CMakeLists.txt ?)
I ask that because I guess this may be the cause of a link error I observe when I build another software with parallel hdf : I would like to test if this may fix this problem.
Franck
···
Le 2015-10-16 12:47, Dana Robinson a écrit :
Whoops! Sorry! I read that as thread-safe, not parallel. It's early
here and I haven't made much progress on my coffee.
The lack of parallel and C++ being official supported is, I believe,
due to a lack of testing and not due to a particular bug or problem.
It seems the C++ option is incompatible with the parallel option when
building HDF5 (at least from 1.8.10 to 1.8.15 - both using cmake or
autotools).
Is this expected ? Or is it because of some bug ? Is this supposed to
be fixed or supported in later release ? If yes, when ? Or is this
supposed to be always this way ?
FH
_______________________________________________
Hdf-forum is for HDF software users discussion. Hdf-forum@lists.hdfgroup.org
In configure, use --enable-unsupported with --enable-cxx and --enable-parallel. In CMake there's an ALLOW_UNSUPPORTED option. It's under the advanced options if you are using ccmake, et al.
Note that, unlike Fortran, there are no parallel-specific C++ tests for the parallel library (hence our lack of official support) so you'll have to use your own code to see if it works for you.
Dana
···
-----Original Message-----
From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of houssen
Sent: Friday, October 16, 2015 8:07 AM
To: hdf-forum@lists.hdfgroup.org
Subject: Re: [Hdf-forum] C++ versus parallel
OK Dana, thanks for the information. Is there a way to force both C++ and parallel options ? (specific option in ccmake ? Modify CMakeLists.txt ?) I ask that because I guess this may be the cause of a link error I observe when I build another software with parallel hdf : I would like to test if this may fix this problem.
Franck
Le 2015-10-16 12:47, Dana Robinson a écrit :
Whoops! Sorry! I read that as thread-safe, not parallel. It's early
here and I haven't made much progress on my coffee.
The lack of parallel and C++ being official supported is, I believe,
due to a lack of testing and not due to a particular bug or problem.
Dana Robinson
Software Engineer
The HDF Group
-----Original Message-----
From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On
Behalf Of houssen
Sent: Friday, October 16, 2015 6:32 AM
To: hdf-forum@lists.hdfgroup.org
Subject: [Hdf-forum] C++ versus parallel
Hello,
It seems the C++ option is incompatible with the parallel option when
building HDF5 (at least from 1.8.10 to 1.8.15 - both using cmake or
autotools).
Is this expected ? Or is it because of some bug ? Is this supposed to
be fixed or supported in later release ? If yes, when ? Or is this
supposed to be always this way ?
FH
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org