毕昇编译HDF5时可以使用mpi并行编译,也可以串行编译,但需要关parallel选项
例如:
1)毕昇编译HDF5:
CC=clang CXX=clang++ FC=flang ./configure --enable-fortran --enable-static=yes --enable-parallel --enable-shared
此时如果环境中没有MPI,会提示以下报错
configure: error: unable to link a simple MPI-IO C program
是因为配置选项中加上了--enable-parallel
正确配置选项是./configure --enable-fortran --enable-static=yes --enable-shared
2)毕昇+hmpi并行编译hdf5
CC=mpicc CXX=mpicxx FC=mpif90 ./configure --enable-fortran --enable-static=yes --enable-parallel --enable-shared
毕昇编译HDF5时可以使用mpi并行编译,也可以串行编译,但需要关parallel选项
例如:
1)毕昇编译HDF5:
CC=clang CXX=clang++ FC=flang ./configure --enable-fortran --enable-static=yes --enable-parallel --enable-shared
此时如果环境中没有MPI,会提示以下报错
configure: error: unable to link a simple MPI-IO C program
是因为配置选项中加上了--enable-parallel
正确配置选项是./configure --enable-fortran --enable-static=yes --enable-shared
2)毕昇+hmpi并行编译hdf5
CC=mpicc CXX=mpicxx FC=mpif90 ./configure --enable-fortran --enable-static=yes --enable-parallel --enable-shared