Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Parallel and Distributed Ruby
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
test
.gitignore
MIT-LICENSE
README
setup.rb

README

Pwrake - Parallel and Distributed Ruby
                   Masahiro Tanaka 2012-02-14

* Tested for

 - ruby 1.9.2p0

* Install

 $ ruby setup.rb

* How to use

 - create `rhosts' file : list of remote hosts

    $ cat rhosts
    host1
    host2
    host3
    ..

 - enable ssh-login to rhosts w/o passwd

 - demo program

    $ cat test/t.rb
    comm = Communicator.instance
    rank = comm.rank
    size = comm.size
    data = [rank,`hostname`.chomp]
    comm.send((rank+1)%size,0,data)
    p [:send, data, :recv, comm.recv((rank-1)%size,0)]

 - run

    $ pdrb test/t.rb

* Class method

 - Communicator.instance #=> communicator

* Instance methods

 - Communicator#rank
 - Communicator#size
 - Communicator#send(rank,tag,obj)
 - Communicator#recv(rank,tag) #=> obj
Something went wrong with that request. Please try again.