mpi-node:Node.js 中的 MPI 库实现

时间:2021-05-29 17:06:25
【文件属性】:
文件名称:mpi-node:Node.js 中的 MPI 库实现
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-29 17:06:25
nodejs mpi distributed-computing mpi-library JavaScript node.js 中的 MPI 实现。 MPI 是在大多数现代编程语言中作为库实现的消息传递协议。 MPI 允许程序员创建节点集群 - 本地或分布式。 每个节点都分配了一个单独的 tid - 自己的 id,从 0 到 n,其中 n 是集群的大小。 每个节点都执行相同的代码,但根据其 id 表现不同。 此MPI实现中的API是基本的,可以使用的方法是: MPI . init ( callback ) ; //executes callback after the nodes connect with each other MPI . rank ( ) ; // returns an unique id of the node which executes the code MPI . size ( ) //returns the size of the cluster (the n
【文件预览】:
mpi-node-master
----mpi.js(9KB)
----lib()
--------codeDistribution.js(4KB)
----README.md(5KB)
----package-lock.json(2KB)
----package.json(649B)

网友评论