|
9 | 9 | * University of Stuttgart. All rights reserved.
|
10 | 10 | * Copyright (c) 2004-2005 The Regents of the University of California.
|
11 | 11 | * All rights reserved.
|
12 |
| - * Copyright (c) 2008-2018 University of Houston. All rights reserved. |
| 12 | + * Copyright (c) 2008-2019 University of Houston. All rights reserved. |
13 | 13 | * Copyright (c) 2015-2018 Research Organization for Information Science
|
14 | 14 | * and Technology (RIST). All rights reserved.
|
15 | 15 | * $COPYRIGHT$
|
|
31 | 31 |
|
32 | 32 | #include "common_ompio.h"
|
33 | 33 | #include "common_ompio_request.h"
|
34 |
| -#include "math.h" |
35 | 34 | #include <unistd.h>
|
| 35 | +#include <math.h> |
36 | 36 |
|
37 | 37 | #if OPAL_CUDA_SUPPORT
|
38 | 38 | #include "common_ompio_cuda.h"
|
@@ -116,7 +116,7 @@ int mca_common_ompio_file_write (ompio_file_t *fh,
|
116 | 116 | else {
|
117 | 117 | bytes_per_cycle = OMPIO_MCA_GET(fh, cycle_buffer_size);
|
118 | 118 | }
|
119 |
| - cycles = ceil((float)max_data/bytes_per_cycle); |
| 119 | + cycles = ceil((double)max_data/bytes_per_cycle); |
120 | 120 |
|
121 | 121 | #if 0
|
122 | 122 | printf ("Bytes per Cycle: %d Cycles: %d\n", bytes_per_cycle, cycles);
|
@@ -409,7 +409,7 @@ int mca_common_ompio_file_iwrite_at_all (ompio_file_t *fp,
|
409 | 409 | /**************************************************************/
|
410 | 410 |
|
411 | 411 | int mca_common_ompio_build_io_array ( ompio_file_t *fh, int index, int cycles,
|
412 |
| - size_t bytes_per_cycle, int max_data, uint32_t iov_count, |
| 412 | + size_t bytes_per_cycle, int max_data, uint32_t iov_count, |
413 | 413 | struct iovec *decoded_iov, int *ii, int *jj, size_t *tbw,
|
414 | 414 | size_t *spc)
|
415 | 415 | {
|
|
0 commit comments