From 69d9ee3a166f866b6d18af0dfd3e60def7ae78b3 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Fri, 8 Jan 2016 08:55:09 -0700 Subject: [PATCH 1/2] remove unneeded include --- src/clib/pioc_support.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/clib/pioc_support.c b/src/clib/pioc_support.c index 40bca838fc4..0a5cc4baa46 100644 --- a/src/clib/pioc_support.c +++ b/src/clib/pioc_support.c @@ -3,7 +3,6 @@ */ #include #include -#include "gptl.h" #include #define versno 2001 From 6daa1458f1fce45c2a468c03ebfb40ca8575643f Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Fri, 8 Jan 2016 16:17:01 -0700 Subject: [PATCH 2/2] rework workaround --- src/clib/pio_spmd.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/clib/pio_spmd.c b/src/clib/pio_spmd.c index aee78f4d001..4b5fcc423cc 100644 --- a/src/clib/pio_spmd.c +++ b/src/clib/pio_spmd.c @@ -248,7 +248,6 @@ int pio_swapm(void *sndbuf, int sndlths[], int sdispls[], MPI_Datatype stypes CheckMPIReturn(MPI_Comm_size(comm, &nprocs),__FILE__,__LINE__); CheckMPIReturn(MPI_Comm_rank(comm, &mytask),__FILE__,__LINE__); -#ifndef OPEN_MPI if(max_requests == 0) { #ifdef DEBUG int totalrecv=0; @@ -260,11 +259,32 @@ int pio_swapm(void *sndbuf, int sndlths[], int sdispls[], MPI_Datatype stypes } printf("%s %d totalsend %d totalrecv %d \n",__FILE__,__LINE__,totalsend,totalrecv); +#endif +#ifdef OPEN_MPI + for(int i=0;i