Fix compilation warnings
parent
3a34b2efb7
commit
be48206e5f
|
@ -171,7 +171,7 @@ void gpfs_access_start(int fd, IOR_offset_t length, IOR_param_t *param, int acce
|
||||||
|
|
||||||
rc = gpfs_fcntl(fd, &take_locks);
|
rc = gpfs_fcntl(fd, &take_locks);
|
||||||
if (verbose >= VERBOSE_2 && rc != 0) {
|
if (verbose >= VERBOSE_2 && rc != 0) {
|
||||||
EWARNF("gpfs_fcntl(fd, ...) access range hint failed.", fd);
|
EWARNF("gpfs_fcntl(%d, ...) access range hint failed.", fd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ void gpfs_access_end(int fd, IOR_offset_t length, IOR_param_t *param, int access
|
||||||
|
|
||||||
rc = gpfs_fcntl(fd, &free_locks);
|
rc = gpfs_fcntl(fd, &free_locks);
|
||||||
if (verbose >= VERBOSE_2 && rc != 0) {
|
if (verbose >= VERBOSE_2 && rc != 0) {
|
||||||
EWARNF("gpfs_fcntl(fd, ...) free range hint failed.", fd);
|
EWARNF("gpfs_fcntl(%d, ...) free range hint failed.", fd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -503,8 +503,6 @@ void AllocResults(IOR_test_t *test)
|
||||||
if (test->results != NULL)
|
if (test->results != NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
IOR_param_t * params = & test->params;
|
|
||||||
|
|
||||||
reps = test->params.repetitions;
|
reps = test->params.repetitions;
|
||||||
test->results = (IOR_results_t *) safeMalloc(sizeof(IOR_results_t) * reps);
|
test->results = (IOR_results_t *) safeMalloc(sizeof(IOR_results_t) * reps);
|
||||||
}
|
}
|
||||||
|
@ -886,7 +884,7 @@ ReduceIterResults(IOR_test_t *test, double *timer, const int rep, const int acce
|
||||||
* number of I/Os issued from that task; then reduce and display the
|
* number of I/Os issued from that task; then reduce and display the
|
||||||
* minimum (best) latency achieved. So what is reported is the average
|
* minimum (best) latency achieved. So what is reported is the average
|
||||||
* latency of all ops from a single task, then taking the minimum of
|
* latency of all ops from a single task, then taking the minimum of
|
||||||
* that between all tasks. */
|
* that between all tasks. */
|
||||||
latency = (timer[3] - timer[2]) / (params->blockSize / params->transferSize);
|
latency = (timer[3] - timer[2]) / (params->blockSize / params->transferSize);
|
||||||
MPI_CHECK(MPI_Reduce(&latency, &minlatency, 1, MPI_DOUBLE,
|
MPI_CHECK(MPI_Reduce(&latency, &minlatency, 1, MPI_DOUBLE,
|
||||||
MPI_MIN, 0, testComm), "MPI_Reduce()");
|
MPI_MIN, 0, testComm), "MPI_Reduce()");
|
||||||
|
|
Loading…
Reference in New Issue