Public | Automated Build

Last pushed: 2 months ago
Short Description
Docker container with the fresh-mc gem for developing many-core applications.
Full Description

Fresh

Fresh-mc is a ruby gem for exploring many-core programming with mpi.

Installation

    $ gem install "fresh-mc"

Usage

    require 'fresh-mc'

    proc{
      3.times{|i|
        sleep rank
        puts "Hi #{i} from node #{rank}/#{size}"
        sleep 3-rank
      }
    }*3

Docker container

  1. Install docker.

     https://hub.docker.com/r/fresh/fresh
    
  2. Run an instance of the container.

     $ docker run -it fresh/fresh
    
  3. Run your application.

     $ echo "proc{ p sleep rank }*4" | docker run -i fresh/fresh
    

Credits

Copyright 2015-2016  Jaume Masip-Torne <jmasip@gianduia.net>
          2015-2016  Ismael Merodio-Codinachs <ismael@gianduia.net>

Running the specs

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.

Docker Pull Command
Owner
fresh
Source Repository