From 3de9a311baa2836973d459c793990c0ce1402f73 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Fri, 20 Jun 2014 10:58:43 +0200 Subject: [PATCH] Remove benchmarking calls from cart_create --- src/smpi/smpi_pmpi.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/smpi/smpi_pmpi.c b/src/smpi/smpi_pmpi.c index 9159a69710..22858c3f3f 100644 --- a/src/smpi/smpi_pmpi.c +++ b/src/smpi/smpi_pmpi.c @@ -2587,20 +2587,16 @@ int PMPI_Initialized(int* flag) { int PMPI_Cart_create(MPI_Comm comm_old, int ndims, int* dims, int* periodic, int reorder, MPI_Comm* comm_cart) { int retval = 0; - smpi_bench_end(); if (comm_old == MPI_COMM_NULL){ - return MPI_ERR_COMM; + retval = MPI_ERR_COMM; } else if (ndims < 0 || (ndims > 0 && (dims == NULL || periodic == NULL)) || comm_cart == NULL) { - return MPI_ERR_ARG; + retval = MPI_ERR_ARG; } retval = smpi_mpi_cart_create(comm_old, ndims, dims, periodic, reorder, comm_cart); - - smpi_bench_begin(); - return retval; } -- 2.20.1