From bc862ce3ab7b642fba1874f65d867fcbc61c8df2 Mon Sep 17 00:00:00 2001 From: Guido Cossu Date: Thu, 18 May 2017 14:44:56 +0100 Subject: [PATCH] Fixing an allocation issue in Benchmark_comms --- benchmarks/Benchmark_comms.cc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/benchmarks/Benchmark_comms.cc b/benchmarks/Benchmark_comms.cc index 99ab190b..a49e3033 100644 --- a/benchmarks/Benchmark_comms.cc +++ b/benchmarks/Benchmark_comms.cc @@ -40,15 +40,17 @@ int main (int argc, char ** argv) int threads = GridThread::GetThreads(); std::cout<1) nmu++; + + std::cout< xbuf(8); std::vector rbuf(8); + Grid.ShmInitGeneric(); Grid.ShmBufferFreeAll(); for(int d=0;d<8;d++){ xbuf[d] = (HalfSpinColourVectorD *)Grid.ShmBufferMalloc(lat*lat*lat*Ls*sizeof(HalfSpinColourVectorD)); @@ -269,13 +271,11 @@ int main (int argc, char ** argv) double time = stop-start; // microseconds - std::cout< xbuf(8); std::vector rbuf(8); + Grid.ShmInitGeneric(); Grid.ShmBufferFreeAll(); for(int d=0;d<8;d++){ xbuf[d] = (HalfSpinColourVectorD *)Grid.ShmBufferMalloc(lat*lat*lat*Ls*sizeof(HalfSpinColourVectorD)); @@ -353,7 +354,7 @@ int main (int argc, char ** argv) double time = stop-start; // microseconds - std::cout<