X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2d946d78f32cc1b00d0b17aa1e3960cef0fa6535..a92d7b716f51a53dea7f59db8524d4add713b910:/src/smpi/colls/reduce_scatter/reduce_scatter-ompi.cpp?ds=sidebyside diff --git a/src/smpi/colls/reduce_scatter/reduce_scatter-ompi.cpp b/src/smpi/colls/reduce_scatter/reduce_scatter-ompi.cpp index c77f125b37..84fd73740f 100644 --- a/src/smpi/colls/reduce_scatter/reduce_scatter-ompi.cpp +++ b/src/smpi/colls/reduce_scatter/reduce_scatter-ompi.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2014. The SimGrid Team. +/* Copyright (c) 2013-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -41,6 +41,8 @@ * Returns: - MPI_SUCCESS or error code * Limitation: - Works only for commutative operations. */ +namespace simgrid{ +namespace smpi{ int Coll_reduce_scatter_ompi_basic_recursivehalving::reduce_scatter(void *sbuf, void *rbuf, @@ -61,7 +63,7 @@ Coll_reduce_scatter_ompi_basic_recursivehalving::reduce_scatter(void *sbuf, size = comm->size(); XBT_DEBUG("coll:tuned:reduce_scatter_ompi_basic_recursivehalving, rank %d", rank); - if( (op!=MPI_OP_NULL && !op->is_commutative())) + if ((op != MPI_OP_NULL && not op->is_commutative())) THROWF(arg_error,0, " reduce_scatter ompi_basic_recursivehalving can only be used for commutative operations! "); /* Find displacements and the like */ @@ -517,4 +519,6 @@ Coll_reduce_scatter_ompi_ring::reduce_scatter(void *sbuf, void *rbuf, int *rcoun if (NULL != inbuf_free[1]) smpi_free_tmp_buffer(inbuf_free[1]); return ret; } +} +}