parallel-io

parallel write to different groups with h5py

拟墨画扇 提交于 2020-12-15 06:18:41
问题 I'm trying to use parallel h5py to create an independent group for each process and fill each group with some data.. what happens is that only one group gets created and filled with data. This is the program: from mpi4py import MPI import h5py rank = MPI.COMM_WORLD.Get_rank() f = h5py.File('parallel_test.hdf5', 'w', driver='mpio', comm=MPI.COMM_WORLD) data = range(1000) dset = f.create_dataset(str(rank), data=data) f.close() Any thoughts on what is going wrong here? Thanks alot 回答1: Ok, so as