summaryrefslogtreecommitdiffstats
path: root/testpar/t_posix_compliant.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2013-10-31 07:44:00 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2013-10-31 07:44:00 (GMT)
commit0aa06db0a4e5d01b752fecf9e33d4db302ee3abc (patch)
tree5bd2d0032760de036383fa28004a89972265e52d /testpar/t_posix_compliant.c
parent89f2019ecf51f46a99a1d08149d633655c1e7dec (diff)
downloadhdf5-0aa06db0a4e5d01b752fecf9e33d4db302ee3abc.zip
hdf5-0aa06db0a4e5d01b752fecf9e33d4db302ee3abc.tar.gz
hdf5-0aa06db0a4e5d01b752fecf9e33d4db302ee3abc.tar.bz2
[svn-r24380] The parallel test code now uses HDfree, HDmalloc, and HDcalloc
exclusively. Part of the preparation for a fix for HDFFV-8551. Tested on: 32-bit LE linux (jam) w/ parallel and Fortran. There are no behavior changes, so testing was minimal.
Diffstat (limited to 'testpar/t_posix_compliant.c')
-rw-r--r--testpar/t_posix_compliant.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/testpar/t_posix_compliant.c b/testpar/t_posix_compliant.c
index 1bc0053..207f07e 100644
--- a/testpar/t_posix_compliant.c
+++ b/testpar/t_posix_compliant.c
@@ -105,8 +105,8 @@ static int allwrite_allread_blocks(int numprocs, int rank, int write_size)
int amode, i;
MPI_Offset offset = rank*write_size*sizeof(int);
MPI_Status Status;
- int* writebuf = (int*)malloc(write_size*sizeof(int));
- int* readbuf = (int*)malloc (write_size*sizeof(int));
+ int* writebuf = (int*)HDmalloc(write_size*sizeof(int));
+ int* readbuf = (int*)HDmalloc (write_size*sizeof(int));
for(i=0; i<write_size; i++)
writebuf[i] = i;
@@ -143,8 +143,8 @@ static int posix_allwrite_allread_blocks(int numprocs, int rank, int write_size)
int ret;
int i;
int offset = rank*write_size*sizeof(int);
- int* writebuf = (int*)malloc(write_size*sizeof(int));
- int* readbuf = (int*)malloc (write_size*sizeof(int));
+ int* writebuf = (int*)HDmalloc(write_size*sizeof(int));
+ int* readbuf = (int*)HDmalloc (write_size*sizeof(int));
FILE* file = NULL;
for(i=0; i<write_size; i++)
@@ -216,8 +216,8 @@ static int posix_onewrite_allread_blocks(int numprocs, int rank, int write_size)
int ret;
int i;
int offset = rank*write_size*sizeof(int);
- int* writebuf = (int*)malloc(write_size*sizeof(int));
- int* readbuf = (int*)malloc (write_size*sizeof(int));
+ int* writebuf = (int*)HDmalloc(write_size*sizeof(int));
+ int* readbuf = (int*)HDmalloc (write_size*sizeof(int));
FILE* file = NULL;
for(i=0; i<write_size; i++)
@@ -295,8 +295,8 @@ static int posix_onewrite_allread_interlaced(int numprocs, int rank, int write_s
int ret;
int i, fill, index;
int offset = rank*write_size*sizeof(int);
- int* writebuf = (int*)malloc(write_size*sizeof(int));
- int* readbuf = (int*)malloc (write_size*sizeof(int));
+ int* writebuf = (int*)HDmalloc(write_size*sizeof(int));
+ int* readbuf = (int*)HDmalloc (write_size*sizeof(int));
FILE* file = NULL;
if(rank==0)
@@ -389,8 +389,8 @@ static int allwrite_allread_interlaced(int numprocs, int rank, int write_size)
int amode, i, counter = 0;
MPI_Datatype filetype;
MPI_Status Status;
- int* writebuf = (int*)malloc(write_size*sizeof(int));
- int* readbuf = (int*) malloc(numprocs*sizeof(int));
+ int* writebuf = (int*)HDmalloc(write_size*sizeof(int));
+ int* readbuf = (int*) HDmalloc(numprocs*sizeof(int));
int offset=0;
for(i=0; i<write_size; i++)
@@ -488,8 +488,8 @@ static int allwrite_allread_overlap(int numprocs, int rank, int write_size)
int amode, i, counter = 0;
MPI_Datatype filetype;
MPI_Status Status;
- int* writebuf = (int*) malloc(write_size*(numprocs-1)*sizeof(int)); /* An upper bound...not all the elements will be written */
- int* readbuf = (int*) malloc(write_size*(numprocs-1)*sizeof(int));
+ int* writebuf = (int*) HDmalloc(write_size*(numprocs-1)*sizeof(int)); /* An upper bound...not all the elements will be written */
+ int* readbuf = (int*) HDmalloc(write_size*(numprocs-1)*sizeof(int));
if(numprocs < 2)
{
@@ -581,8 +581,8 @@ static int onewrite_allread_blocks(int numprocs, int rank, int write_size)
int mpio_result;
int amode, i;
MPI_Status Status;
- int* writebuf = (int*)malloc(write_size*sizeof(int));
- int* readbuf = (int*)malloc (write_size*sizeof(int));
+ int* writebuf = (int*)HDmalloc(write_size*sizeof(int));
+ int* readbuf = (int*)HDmalloc (write_size*sizeof(int));
for(i=0; i<write_size; i++)
writebuf[i] = i;
@@ -632,8 +632,8 @@ static int onewrite_allread_interlaced(int numprocs, int rank, int write_size)
int amode, i;
MPI_Datatype filetype;
MPI_Status Status;
- int* writebuf = (int*) malloc(numprocs*write_size*sizeof(int)); /* Upper bound, not all used */
- int* readbuf = (int*)malloc (write_size*sizeof(int));
+ int* writebuf = (int*) HDmalloc(numprocs*write_size*sizeof(int)); /* Upper bound, not all used */
+ int* readbuf = (int*)HDmalloc (write_size*sizeof(int));
amode = MPI_MODE_CREATE | MPI_MODE_RDWR;