MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkMPICommunicatorNoBlockSendData

Function vtkMPICommunicatorNoBlockSendData

Parallel/MPI/vtkMPICommunicator.cxx:340–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338//------------------------------------------------------------------------------
339template <class T>
340int vtkMPICommunicatorNoBlockSendData(const T* data, vtkTypeInt64 length, int remoteProcessId,
341 int tag, MPI_Datatype datatype, vtkMPICommunicator::Request& req, MPI_Comm* Handle)
342{
343#ifdef VTKMPI_64BIT_LENGTH
344 return MPI_Isend_c(
345 const_cast<T*>(data), length, datatype, remoteProcessId, tag, *(Handle), &req.Req->Handle);
346#else
347 if (!vtkMPICommunicatorCheckSize(length))
348 {
349 return 0;
350 }
351 return MPI_Isend(const_cast<T*>(data), static_cast<int>(length), datatype, remoteProcessId, tag,
352 *(Handle), &req.Req->Handle);
353#endif
354}
355//------------------------------------------------------------------------------
356template <class T>
357int vtkMPICommunicatorNoBlockReceiveData(T* data, vtkTypeInt64 length, int remoteProcessId, int tag,

Callers 1

NoBlockSendMethod · 0.85

Calls 1

Tested by

no test coverage detected