Replies: 2 comments 1 reply
-
@vvasilva , I just tried with hdf5-1.12.0 mpi with ADIOS2, and it works fine. are you using HDF5 1.12.1 mpi (or parallel) build to compile with ADIOS2? does mpirun -n <num_of_cores> bin/hello_hdf5Writer_mpi A simple example hdf5 client came with ADIOS2, in examples/hello/hdf5Writer/helloHDF5Writer.cpp. If the error persists, please share some lines of your code with us. Thanks |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello dear ADIOS2 community,
I am working on changing the
adiosFoam
library (part of OpenFOAM) to make it write HDF5 files instead of BP4 files. As expected, with only minor changes on the code I was able to write on HDF5 format. However, the clean solution is only limited to the a non-parallel run of my code. When I try to run in parallel, I keep getting slightly variations of the same error (I will keep it short to help reading)It seems clear to me that all of my processes are trying to open the file at the same time as if the processes were not aware of a parallel run. I am taking care of making the
engine_ = io_.Open(dataFile, adios2::Mode::Write, MPI_COMM_WORLD);
call for all processes as HDF5 expects the metadata and file creating should be collective calls.I also make sure that
are called, just to be sure that the HDF5 library will know that it is a parallel run.
Originally, the library I am modifying had clever objects management, keeping all
ADIOS2
objects asstd::unique_ptr<>
s. I didn't want to change that, but did it trying to check if having managed pointers would be the source of my problems. They were not.I would bet I am missing something simple here, but can't find anything. I wrote a sample
ADIOS2
code to create and add groups to a HDF5 file and had no problem running the code in parallel and having only one file writing. No clash between processes. Any tips on what I might be doing wrong or missing? Any missing configuration option for my HDF5 library? Or some I/O parameter I must set?Thanks in advance for any suggestions/tips.
Regards,
Vitor Silva
Beta Was this translation helpful? Give feedback.
All reactions