Skip to content
This repository has been archived by the owner on Feb 24, 2018. It is now read-only.

switched NCMPI write type to MPI_SIGNED_CHAR instead of MPI_BYTE to be compatible with parallel-netcdf 1.7.0 #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/aiori-NCMPI.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static IOR_offset_t NCMPI_Xfer(int access, void *fd, IOR_size_t * buffer,
(IOR_offset_t) ((rank + rankOffset) % param->numTasks)
* param->blockSize;
}
if ((int)(param->offset - segmentPosition) == 0) {
if ((param->offset - segmentPosition) == (IOR_offset_t)0) {
startDataSet = TRUE;
/*
* this toggle is for the read check operation, which passes through
Expand Down Expand Up @@ -279,24 +279,24 @@ static IOR_offset_t NCMPI_Xfer(int access, void *fd, IOR_size_t * buffer,
if (param->collective) {
NCMPI_CHECK(ncmpi_put_vara_all
(*(int *)fd, var_id, offset, bufSize,
bufferPtr, length, MPI_BYTE),
bufferPtr, length, MPI_SIGNED_CHAR),
"cannot write to data set");
} else {
NCMPI_CHECK(ncmpi_put_vara
(*(int *)fd, var_id, offset, bufSize,
bufferPtr, length, MPI_BYTE),
bufferPtr, length, MPI_SIGNED_CHAR),
"cannot write to data set");
}
} else { /* READ or CHECK */
if (param->collective == TRUE) {
NCMPI_CHECK(ncmpi_get_vara_all
(*(int *)fd, var_id, offset, bufSize,
bufferPtr, length, MPI_BYTE),
bufferPtr, length, MPI_SIGNED_CHAR),
"cannot read from data set");
} else {
NCMPI_CHECK(ncmpi_get_vara
(*(int *)fd, var_id, offset, bufSize,
bufferPtr, length, MPI_BYTE),
bufferPtr, length, MPI_SIGNED_CHAR),
"cannot read from data set");
}
}
Expand Down