"Hdf-forum on behalf of Anton Shterenlikht" wrote:

Hi, I'm new to HDF5 and to this list.

I have identical problem on 2 different platforms:

- linux, hdf5-1.8.12, Intel 16.0.2 compiler, Intel MPI 1.6.5
- FreeBSD 11.0-RELEASE-p2, mpich-3.2_2, hdf5-1.10.0_1, gcc6-6.2.0 compiler

I build a third party library
which includes several HDF5 routines.
On both systems at link time I get:

undefined reference to `h5pset_fapl_mpio_f_'
undefined reference to `h5pset_dxpl_mpio_f_'

Is the HDF5 library you are linking to compiled *for* parallel? It *has* to 
have been configured with --enable-parallel *and* also linked with MPI.

I suspect you don't have any MPI routines in your installations of HDF5. To 
check, do this....

for file in `ls libhdf5*.a`; do nm $file |grep -i mpi; done

*Iff* it has been compiled for parallel, you should see a slew of symbols 
like...

                 U _MPI_Allreduce
                 U _MPI_Barrier
                 U _MPI_Bcast
                 U _MPI_Comm_dup
                 U _MPI_Comm_free
                 U _MPI_Comm_rank
                 U _MPI_Comm_size
                 U _MPI_Error_string
                 U _MPI_File_close
                 U _MPI_File_get_atomicity
                 U _MPI_File_get_size
                 U _MPI_File_open
                 U _MPI_File_read_at
                 U _MPI_File_read_at_all
                 U _MPI_File_set_atomicity
                 U _MPI_File_set_size
                 U _MPI_File_set_view
                 U _MPI_File_sync
                 U _MPI_File_write_at

Otherwise, it wasn't compiled for parallel. Go back and re-configure and 
re-compile it for parallel.

HTH

--
Mark C. Miller, LLNL

"You learn more about a man by what he says about
others than by what others say about him." AH

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to