X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fewald%2Fpme_coordinate_receiver_gpu_impl.cpp;h=9d727d14b696bbb9d69258ae101f77bae00f5079;hb=c088e63019ebc68760d35c3bc916015864aa8e89;hp=4e997d319bd42cd32e9d32879178a99f3ca4a5fb;hpb=f59f6ec6e04f4a3732876c2c76250b8444fdcb69;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/ewald/pme_coordinate_receiver_gpu_impl.cpp b/src/gromacs/ewald/pme_coordinate_receiver_gpu_impl.cpp index 4e997d319b..9d727d14b6 100644 --- a/src/gromacs/ewald/pme_coordinate_receiver_gpu_impl.cpp +++ b/src/gromacs/ewald/pme_coordinate_receiver_gpu_impl.cpp @@ -62,8 +62,8 @@ class PmeCoordinateReceiverGpu::Impl }; /*!\brief Constructor stub. */ -PmeCoordinateReceiverGpu::PmeCoordinateReceiverGpu(const DeviceStream& /* pmeStream */, - MPI_Comm /* comm */, +PmeCoordinateReceiverGpu::PmeCoordinateReceiverGpu(MPI_Comm /* comm */, + const DeviceContext& /* deviceContext */, gmx::ArrayRef /* ppRanks */) : impl_(nullptr) { @@ -75,7 +75,7 @@ PmeCoordinateReceiverGpu::PmeCoordinateReceiverGpu(const DeviceStream& /* pmeStr PmeCoordinateReceiverGpu::~PmeCoordinateReceiverGpu() = default; /*!\brief init PME-PP GPU communication stub */ -void PmeCoordinateReceiverGpu::sendCoordinateBufferAddressToPpRanks(DeviceBuffer /* d_x */) +void PmeCoordinateReceiverGpu::reinitCoordinateReceiver(DeviceBuffer /* d_x */) { GMX_ASSERT(!impl_, "A CPU stub for PME-PP GPU communication initialization was called instead of the " @@ -99,13 +99,47 @@ void PmeCoordinateReceiverGpu::launchReceiveCoordinatesFromPpCudaMpi(DeviceBuffe "implementation."); } -void PmeCoordinateReceiverGpu::synchronizeOnCoordinatesFromPpRanks() +int PmeCoordinateReceiverGpu::synchronizeOnCoordinatesFromPpRank(int /* pipelineStage */, + const DeviceStream& /* deviceStream */) { GMX_ASSERT(!impl_, "A CPU stub for PME-PP GPU communication was called instead of the correct " "implementation."); + return 0; } +void PmeCoordinateReceiverGpu::synchronizeOnCoordinatesFromAllPpRanks(const DeviceStream& /* deviceStream */) +{ + GMX_ASSERT(!impl_, + "A CPU stub for PME-PP GPU communication was called instead of the correct " + "implementation."); +} + +DeviceStream* PmeCoordinateReceiverGpu::ppCommStream(int /* senderIndex */) +{ + GMX_ASSERT(!impl_, + "A CPU stub for PME-PP GPU communication was called instead of the correct " + "implementation."); + return nullptr; +} + +std::tuple PmeCoordinateReceiverGpu::ppCommAtomRange(int /* senderIndex */) +{ + GMX_ASSERT(!impl_, + "A CPU stub for PME-PP GPU communication was called instead of the correct " + "implementation."); + return std::make_tuple(0, 0); +} + +int PmeCoordinateReceiverGpu::ppCommNumSenderRanks() +{ + GMX_ASSERT(!impl_, + "A CPU stub for PME-PP GPU communication was called instead of the correct " + "implementation."); + return 0; +} + + } // namespace gmx #endif // !GMX_GPU_CUDA