From 2c51faa58d994a02d69084e7a49cd1dc503293f2 Mon Sep 17 00:00:00 2001 From: Rolf vandeVaart Date: Mon, 21 Sep 2015 14:18:44 -0400 Subject: [PATCH] Fix warnings due to missing const --- ompi/mca/coll/cuda/coll_cuda.h | 12 ++++++------ ompi/mca/coll/cuda/coll_cuda_allreduce.c | 2 +- ompi/mca/coll/cuda/coll_cuda_exscan.c | 2 +- ompi/mca/coll/cuda/coll_cuda_reduce.c | 2 +- ompi/mca/coll/cuda/coll_cuda_reduce_scatter_block.c | 2 +- ompi/mca/coll/cuda/coll_cuda_scan.c | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ompi/mca/coll/cuda/coll_cuda.h b/ompi/mca/coll/cuda/coll_cuda.h index 7ba41f6a3d..6b566c8eb1 100644 --- a/ompi/mca/coll/cuda/coll_cuda.h +++ b/ompi/mca/coll/cuda/coll_cuda.h @@ -2,7 +2,7 @@ * Copyright (c) 2014 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. - * Copyright (c) 2014 NVIDIA Corporation. All rights reserved. + * Copyright (c) 2014-2015 NVIDIA Corporation. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -39,33 +39,33 @@ int mca_coll_cuda_module_enable(mca_coll_base_module_t *module, struct ompi_communicator_t *comm); int -mca_coll_cuda_allreduce(void *sbuf, void *rbuf, int count, +mca_coll_cuda_allreduce(const void *sbuf, void *rbuf, int count, struct ompi_datatype_t *dtype, struct ompi_op_t *op, struct ompi_communicator_t *comm, mca_coll_base_module_t *module); -int mca_coll_cuda_reduce(void *sbuf, void *rbuf, int count, +int mca_coll_cuda_reduce(const void *sbuf, void *rbuf, int count, struct ompi_datatype_t *dtype, struct ompi_op_t *op, int root, struct ompi_communicator_t *comm, mca_coll_base_module_t *module); -int mca_coll_cuda_exscan(void *sbuf, void *rbuf, int count, +int mca_coll_cuda_exscan(const void *sbuf, void *rbuf, int count, struct ompi_datatype_t *dtype, struct ompi_op_t *op, struct ompi_communicator_t *comm, mca_coll_base_module_t *module); -int mca_coll_cuda_scan(void *sbuf, void *rbuf, int count, +int mca_coll_cuda_scan(const void *sbuf, void *rbuf, int count, struct ompi_datatype_t *dtype, struct ompi_op_t *op, struct ompi_communicator_t *comm, mca_coll_base_module_t *module); int -mca_coll_cuda_reduce_scatter_block(void *sbuf, void *rbuf, int rcount, +mca_coll_cuda_reduce_scatter_block(const void *sbuf, void *rbuf, int rcount, struct ompi_datatype_t *dtype, struct ompi_op_t *op, struct ompi_communicator_t *comm, diff --git a/ompi/mca/coll/cuda/coll_cuda_allreduce.c b/ompi/mca/coll/cuda/coll_cuda_allreduce.c index d510001f4f..05e2c3910a 100644 --- a/ompi/mca/coll/cuda/coll_cuda_allreduce.c +++ b/ompi/mca/coll/cuda/coll_cuda_allreduce.c @@ -27,7 +27,7 @@ * Returns: - MPI_SUCCESS or error code */ int -mca_coll_cuda_allreduce(void *sbuf, void *rbuf, int count, +mca_coll_cuda_allreduce(const void *sbuf, void *rbuf, int count, struct ompi_datatype_t *dtype, struct ompi_op_t *op, struct ompi_communicator_t *comm, diff --git a/ompi/mca/coll/cuda/coll_cuda_exscan.c b/ompi/mca/coll/cuda/coll_cuda_exscan.c index 2bfe197d1e..1f93722d62 100644 --- a/ompi/mca/coll/cuda/coll_cuda_exscan.c +++ b/ompi/mca/coll/cuda/coll_cuda_exscan.c @@ -19,7 +19,7 @@ #include "opal/datatype/opal_convertor.h" #include "opal/datatype/opal_datatype_cuda.h" -int mca_coll_cuda_exscan(void *sbuf, void *rbuf, int count, +int mca_coll_cuda_exscan(const void *sbuf, void *rbuf, int count, struct ompi_datatype_t *dtype, struct ompi_op_t *op, struct ompi_communicator_t *comm, diff --git a/ompi/mca/coll/cuda/coll_cuda_reduce.c b/ompi/mca/coll/cuda/coll_cuda_reduce.c index 8bcd5c42a2..1cd667f30b 100644 --- a/ompi/mca/coll/cuda/coll_cuda_reduce.c +++ b/ompi/mca/coll/cuda/coll_cuda_reduce.c @@ -27,7 +27,7 @@ * Returns: - MPI_SUCCESS or error code */ int -mca_coll_cuda_reduce(void *sbuf, void *rbuf, int count, +mca_coll_cuda_reduce(const void *sbuf, void *rbuf, int count, struct ompi_datatype_t *dtype, struct ompi_op_t *op, int root, struct ompi_communicator_t *comm, diff --git a/ompi/mca/coll/cuda/coll_cuda_reduce_scatter_block.c b/ompi/mca/coll/cuda/coll_cuda_reduce_scatter_block.c index c430609bd6..dab1d86ce4 100644 --- a/ompi/mca/coll/cuda/coll_cuda_reduce_scatter_block.c +++ b/ompi/mca/coll/cuda/coll_cuda_reduce_scatter_block.c @@ -31,7 +31,7 @@ * up at some point) */ int -mca_coll_cuda_reduce_scatter_block(void *sbuf, void *rbuf, int rcount, +mca_coll_cuda_reduce_scatter_block(const void *sbuf, void *rbuf, int rcount, struct ompi_datatype_t *dtype, struct ompi_op_t *op, struct ompi_communicator_t *comm, diff --git a/ompi/mca/coll/cuda/coll_cuda_scan.c b/ompi/mca/coll/cuda/coll_cuda_scan.c index eeb651ef66..6cfb06a391 100644 --- a/ompi/mca/coll/cuda/coll_cuda_scan.c +++ b/ompi/mca/coll/cuda/coll_cuda_scan.c @@ -26,7 +26,7 @@ * Accepts: - same arguments as MPI_Scan() * Returns: - MPI_SUCCESS or error code */ -int mca_coll_cuda_scan(void *sbuf, void *rbuf, int count, +int mca_coll_cuda_scan(const void *sbuf, void *rbuf, int count, struct ompi_datatype_t *dtype, struct ompi_op_t *op, struct ompi_communicator_t *comm,