Sha256: 196dd1e24d13c40194963472e54dae80a44ddd8d42e85c85ee81685b8bdb3995
Contents?: true
Size: 235 Bytes
Versions: 2
Compression:
Stored size: 235 Bytes
Contents
require "mpi" MPI.Init world = MPI::Comm::WORLD rank = world.rank if rank == 0 (world.size-1).times do |i| a = NArray.float(2) world.Recv(a, i+1, 1) p a end else world.Send(NArray[1.0,2], 0, 1) end MPI.Finalize
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-mpi-0.2.0 | samples/narray.rb |
ruby-mpi-0.1.0 | samples/narray.rb |