From 81a8209749a31a54720317cfc834c3b66136e9d0 Mon Sep 17 00:00:00 2001 From: Christoph Lehner Date: Thu, 18 Jun 2020 11:53:21 -0400 Subject: [PATCH 1/2] ConvertType for blockInnerProduct --- Grid/lattice/Lattice_transfer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Grid/lattice/Lattice_transfer.h b/Grid/lattice/Lattice_transfer.h index e12ef787..435b7851 100644 --- a/Grid/lattice/Lattice_transfer.h +++ b/Grid/lattice/Lattice_transfer.h @@ -376,8 +376,8 @@ inline void blockInnerProduct(Lattice &CoarseInner, fine_inner = localInnerProduct(fineX,fineY); blockSum(coarse_inner,fine_inner); accelerator_for(ss, coarse->oSites(), 1, { - CoarseInner_[ss] = coarse_inner_[ss]; - }); + convertType(CoarseInner_[ss],coarse_inner_[ss]); + }); } template From 05bbc49a99253a729ebb006694a32adcefed0884 Mon Sep 17 00:00:00 2001 From: Christoph Lehner Date: Fri, 19 Jun 2020 12:01:23 -0400 Subject: [PATCH 2/2] Edge case in GetShmDim check --- Grid/communicator/SharedMemoryMPI.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Grid/communicator/SharedMemoryMPI.cc b/Grid/communicator/SharedMemoryMPI.cc index 0de48cfe..bd83ce52 100644 --- a/Grid/communicator/SharedMemoryMPI.cc +++ b/Grid/communicator/SharedMemoryMPI.cc @@ -180,7 +180,7 @@ void GlobalSharedMemory::GetShmDims(const Coordinate &WorldDims,Coordinate &ShmD && divides(prime,WorldShmSize/AutoShmSize) ) { AutoShmSize*=prime; ShmDims[dim]*=prime; - last_dim = (dim + ndimension - 1) % ndimension; + last_dim = dim; break; } }