"为什么我应该使用sendrecv?"

2024-06-25 05:29:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我试着用mpi4py来教自己MPI消息传递接口。我注意到MPI有一个名为“sendrecv”的函数。但是,mpi4py文档中没有列出它: http://documen.tician.de/boostmpi/reference.html

我可以简单地用say模拟sendrecv函数吗

  communicator.send(0xdeadbeef, dest=1, tag=0)
  data = communicator.recv(source=1, tag=0)

“sendrecv”除了模拟后跟send的recv之外还有什么作用?在哪里可以找到关于它的mpi4py文档?在


Tags: 函数文档sendhttptagdempi4pyreference