3 ms·
Just as an example from julia... http://docs.julialang.org/en/latest/manual/parallel-computing/ http://docs.julialang.org/en/latest/manual/parallel-computin...
by kazagistar 13y ago
Just as an example from julia...
http://docs.julialang.org/en/latest/manual/parallel-computing/ http://docs.julialang.org/en/latest/manual/parallel-computin...
1) Put the addresses of your remote workers (via ssh) in a file, and point Julia at the file.
2) Julia connects to remote workers on each host.
3) Use one of the convenient macros or functions to run the code (this evenly distributes a map reduce to throw 200 million coins and count heads).
> nheads = @parallel (+) for i=1:200000000
> int(randbool())
> end
4) You can also do all of the pool stuff, manual message passing, etc, if you need to.