biginteger库兼容mpi(消息传递接口) [英] biginteger library compatible with mpi (message passing interface)

查看:171
本文介绍了biginteger库兼容mpi(消息传递接口)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在搜索与消息传递接口标准的常见嫌疑物兼容的 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(消息传递接口)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆