From f4b9e0a3a8233fc295ea7352a3b3f643364b274a Mon Sep 17 00:00:00 2001 From: Tobias Meyer Andersen Date: Wed, 17 Apr 2024 14:31:07 +0200 Subject: [PATCH] add safe conversion --- opm/simulators/linalg/cuistl/CuOwnerOverlapCopy.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/linalg/cuistl/CuOwnerOverlapCopy.hpp b/opm/simulators/linalg/cuistl/CuOwnerOverlapCopy.hpp index 7ed78b98e..2c06b7f75 100644 --- a/opm/simulators/linalg/cuistl/CuOwnerOverlapCopy.hpp +++ b/opm/simulators/linalg/cuistl/CuOwnerOverlapCopy.hpp @@ -200,7 +200,7 @@ public: processMap[i]=info->first; if(info->second.second.m_size) { MPI_Irecv(m_GPURecvBuf->data()+info->second.second.m_start, - info->second.second.m_size, + detail::to_int(info->second.second.m_size), MPI_BYTE, info->first, m_commTag, @@ -218,7 +218,7 @@ public: for(const_iterator info = m_messageInformation.begin(); info != end; ++info, ++i) { if(info->second.first.m_size) { MPI_Issend(m_GPUSendBuf->data()+info->second.first.m_start, - info->second.first.m_size, + detail::to_int(info->second.first.m_size), MPI_BYTE, info->first, m_commTag,