Skip to content

Commit f0091c9

Browse files
Rolf vandeVaartggouaillardet
authored andcommitted
Fix warnings due to missing const
(cherry picked from commit open-mpi/ompi@2c51faa)
1 parent 5eec621 commit f0091c9

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

ompi/mca/coll/cuda/coll_cuda.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) 2014 The University of Tennessee and The University
33
* of Tennessee Research Foundation. All rights
44
* reserved.
5-
* Copyright (c) 2014 NVIDIA Corporation. All rights reserved.
5+
* Copyright (c) 2014-2015 NVIDIA Corporation. All rights reserved.
66
* $COPYRIGHT$
77
*
88
* Additional copyrights may follow
@@ -39,33 +39,33 @@ int mca_coll_cuda_module_enable(mca_coll_base_module_t *module,
3939
struct ompi_communicator_t *comm);
4040

4141
int
42-
mca_coll_cuda_allreduce(void *sbuf, void *rbuf, int count,
42+
mca_coll_cuda_allreduce(const void *sbuf, void *rbuf, int count,
4343
struct ompi_datatype_t *dtype,
4444
struct ompi_op_t *op,
4545
struct ompi_communicator_t *comm,
4646
mca_coll_base_module_t *module);
4747

48-
int mca_coll_cuda_reduce(void *sbuf, void *rbuf, int count,
48+
int mca_coll_cuda_reduce(const void *sbuf, void *rbuf, int count,
4949
struct ompi_datatype_t *dtype,
5050
struct ompi_op_t *op,
5151
int root,
5252
struct ompi_communicator_t *comm,
5353
mca_coll_base_module_t *module);
5454

55-
int mca_coll_cuda_exscan(void *sbuf, void *rbuf, int count,
55+
int mca_coll_cuda_exscan(const void *sbuf, void *rbuf, int count,
5656
struct ompi_datatype_t *dtype,
5757
struct ompi_op_t *op,
5858
struct ompi_communicator_t *comm,
5959
mca_coll_base_module_t *module);
6060

61-
int mca_coll_cuda_scan(void *sbuf, void *rbuf, int count,
61+
int mca_coll_cuda_scan(const void *sbuf, void *rbuf, int count,
6262
struct ompi_datatype_t *dtype,
6363
struct ompi_op_t *op,
6464
struct ompi_communicator_t *comm,
6565
mca_coll_base_module_t *module);
6666

6767
int
68-
mca_coll_cuda_reduce_scatter_block(void *sbuf, void *rbuf, int rcount,
68+
mca_coll_cuda_reduce_scatter_block(const void *sbuf, void *rbuf, int rcount,
6969
struct ompi_datatype_t *dtype,
7070
struct ompi_op_t *op,
7171
struct ompi_communicator_t *comm,

ompi/mca/coll/cuda/coll_cuda_allreduce.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* Returns: - MPI_SUCCESS or error code
2828
*/
2929
int
30-
mca_coll_cuda_allreduce(void *sbuf, void *rbuf, int count,
30+
mca_coll_cuda_allreduce(const void *sbuf, void *rbuf, int count,
3131
struct ompi_datatype_t *dtype,
3232
struct ompi_op_t *op,
3333
struct ompi_communicator_t *comm,

ompi/mca/coll/cuda/coll_cuda_exscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "opal/datatype/opal_convertor.h"
2020
#include "opal/datatype/opal_datatype_cuda.h"
2121

22-
int mca_coll_cuda_exscan(void *sbuf, void *rbuf, int count,
22+
int mca_coll_cuda_exscan(const void *sbuf, void *rbuf, int count,
2323
struct ompi_datatype_t *dtype,
2424
struct ompi_op_t *op,
2525
struct ompi_communicator_t *comm,

ompi/mca/coll/cuda/coll_cuda_reduce.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* Returns: - MPI_SUCCESS or error code
2828
*/
2929
int
30-
mca_coll_cuda_reduce(void *sbuf, void *rbuf, int count,
30+
mca_coll_cuda_reduce(const void *sbuf, void *rbuf, int count,
3131
struct ompi_datatype_t *dtype,
3232
struct ompi_op_t *op,
3333
int root, struct ompi_communicator_t *comm,

ompi/mca/coll/cuda/coll_cuda_reduce_scatter_block.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* up at some point)
3232
*/
3333
int
34-
mca_coll_cuda_reduce_scatter_block(void *sbuf, void *rbuf, int rcount,
34+
mca_coll_cuda_reduce_scatter_block(const void *sbuf, void *rbuf, int rcount,
3535
struct ompi_datatype_t *dtype,
3636
struct ompi_op_t *op,
3737
struct ompi_communicator_t *comm,

ompi/mca/coll/cuda/coll_cuda_scan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* Accepts: - same arguments as MPI_Scan()
2727
* Returns: - MPI_SUCCESS or error code
2828
*/
29-
int mca_coll_cuda_scan(void *sbuf, void *rbuf, int count,
29+
int mca_coll_cuda_scan(const void *sbuf, void *rbuf, int count,
3030
struct ompi_datatype_t *dtype,
3131
struct ompi_op_t *op,
3232
struct ompi_communicator_t *comm,

0 commit comments

Comments
 (0)