问题描述
我正在搜索与消息传递接口
标准的常见嫌疑物兼容的 BigInteger
,例如 MPI :: COMM_WORLD.Send
和 MPI :: COMM_WORLD.Recv
。
I'm searching for a BigInteger
library that is compatible with the usual suspects of the Message Passing Interface
standard, such as MPI::COMM_WORLD.Send
and MPI::COMM_WORLD.Recv
.
不幸的是,MPI也代表多精度整数,因此大多数搜索结果实际上不匹配。几个尝试使用类似的查询谷歌使用搜索没有显示任何实现,但肯定有人已经这样做。所以基本上问题是:有人知道mpi兼容MPI的实现吗?
Unfortunately MPI also stands for multi precision integer, so most search results actually do not match. Several attempts to search this with google using similar queries did not reveal any implementation, but surely someone already did that. So basically the question is: does anyone know an implementation of mpi compatible with MPI?
推荐答案
在理论上任何大整数库
大整数库不是MPI的标准之一,MPI_INT MPI_DOUBLE exc exc ...
The big integer library would not be one of MPI's standard data types, MPI_INT MPI_DOUBLE exc exc...
一种方法是将biginteger序列化为字节,将其恢复为MPI_BYTE,然后将其转换回
One approach is to serialize your biginteger into bytes, send/recv it as MPI_BYTE then convert it back
这篇关于biginteger库兼容mpi(消息传递接口)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!