mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix typo that would cause crash cuda aware openmpi
This commit is contained in:
parent
a417968464
commit
9d6dcb00a3
@ -168,7 +168,7 @@ private:
|
|||||||
const auto& communication = m_opOnCPUWithMatrix.getCommunication();
|
const auto& communication = m_opOnCPUWithMatrix.getCommunication();
|
||||||
|
|
||||||
// Temporary solution use the GPU Direct communication solely based on these prepcrosessor statements
|
// Temporary solution use the GPU Direct communication solely based on these prepcrosessor statements
|
||||||
bool mpiSUpportsCudaAwareAtCompileTime = false;
|
bool mpiSupportsCudaAwareAtCompileTime = false;
|
||||||
bool mpiSupportsCudaAwareAtRunTime = false;
|
bool mpiSupportsCudaAwareAtRunTime = false;
|
||||||
|
|
||||||
#if defined(MPIX_CUDA_AWARE_SUPPORT) && MPIX_CUDA_AWARE_SUPPORT
|
#if defined(MPIX_CUDA_AWARE_SUPPORT) && MPIX_CUDA_AWARE_SUPPORT
|
||||||
@ -184,7 +184,7 @@ private:
|
|||||||
|
|
||||||
// TODO add typename Operator communication type as a named type with using
|
// TODO add typename Operator communication type as a named type with using
|
||||||
std::shared_ptr<Opm::cuistl::GPUSender<real_type, typename Operator::communication_type>> gpuComm;
|
std::shared_ptr<Opm::cuistl::GPUSender<real_type, typename Operator::communication_type>> gpuComm;
|
||||||
if (mpiSUpportsCudaAwareAtCompileTime && mpiSupportsCudaAwareAtRunTime){
|
if (mpiSupportsCudaAwareAtCompileTime && mpiSupportsCudaAwareAtRunTime){
|
||||||
gpuComm = std::make_shared<Opm::cuistl::GPUAwareMPISender<real_type, block_size, typename Operator::communication_type>>(communication);
|
gpuComm = std::make_shared<Opm::cuistl::GPUAwareMPISender<real_type, block_size, typename Operator::communication_type>>(communication);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
Loading…
Reference in New Issue
Block a user