Fresh-mc is a ruby gem for exploring many-core programming with mpi.
$ gem install "fresh-mc"
require 'fresh-mc'
proc{
3.times{|i|
sleep rank
puts "Hi #{i} from node #{rank}/#{size}"
sleep 3-rank
}
}*3
-
https://hub.docker.com/r/fresh/fresh
-
Run an instance of the container.
$ docker run -it fresh/fresh
-
Run your application.
$ echo "proc{ p sleep rank }*4" | docker run -i fresh/fresh
Copyright 2015-2019 Jaume Masip-Torne <jmasip@fresh-mc.com>
2015-2019 Ismael Merodio-Codinachs <ismael@fresh-mc.com>
First, resolve the fresh-mc gem dependencies:
$ gem install rubinius-actor
Next, clone this repository:
$ git clone https://github.com/medols/fresh.git
Then move to it:
$ cd fresh
Clone MSpec:
$ git clone https://github.com/ruby/mspec.git ../mspec
And run the Fresh suite:
$ ../mspec/bin/mspec
This will execute all the Fresh specs.