mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-06 17:20:42 +08:00
[svn-r11316]
Purpose: bug fix for collective chunk IO Description: When using calloc to allocate an MPI datatype, one should use sizeof(MPI datatype) instead of sizeof(equalivent non-MPI datatype) to assign the value, this causes the problem at 64-bit platforms such IRIX65 and AIX 5.1. Solution: Correct it. Platforms tested: AIX 5.1 and IRIX6.5(at NCAR). Misc. update:
This commit is contained in:
parent
336716e427
commit
1e7062e6b2
@ -621,8 +621,8 @@ static herr_t H5S_obtain_datatype(const hsize_t size[],
|
||||
#else
|
||||
|
||||
blocklen = (int *)HDcalloc((size_t)outercount,sizeof(int));
|
||||
disp = (MPI_Aint *)HDcalloc((size_t)outercount,sizeof(int));
|
||||
inner_type = (MPI_Datatype *)HDcalloc((size_t)outercount,sizeof(int));
|
||||
disp = (MPI_Aint *)HDcalloc((size_t)outercount,sizeof(MPI_Aint));
|
||||
inner_type = (MPI_Datatype *)HDcalloc((size_t)outercount,sizeof(MPI_Datatype));
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user