sending bitset with MPI

自作多情 提交于 2019-12-25 12:06:18

问题


What is an efficient way to send/receive bits from bitset class without conversion. Is it possible to use MPI_BYTE?

If so, what to define as container for the array that is going to hold the bits? If this is not possible, which conversion is more efficient, conversion to ulong or to strings?


回答1:


Convert it to array of "bool" and send by MPI_BYTE, this method works on cluster.



来源:https://stackoverflow.com/questions/43263598/sending-bitset-with-mpi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!