Giter Site home page Giter Site logo

unixjunkie / par Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 4.0 398 KB

Execute shell commands in a parallel and/or distributed way

Home Page: https://savannah.nongnu.org/projects/par

License: GNU General Public License v3.0

Shell 3.66% Python 96.25% Makefile 0.08%
parallel-computing distributed-computing bag-of-tasks parameter-sweep command-line-tool python-program

par's Introduction

If you use this software, please cite the corresponding publication:

@article{Berenger2010,
author = {Berenger, Francois and Coti, Camille and Zhang, Kam Y. J.},
title = {{PAR: A PARallel And Distributed Job Crusher}},
doi = {10.1093/bioinformatics/btq542},
year = {2010},
journal = {Bioinformatics}
}

# you need to install Pyro, cf. http://pyro.sourceforge.net
# (sudo yum install pyro _OR_ sudo aptitude install pyro)
# On the server, TCP port 7766 must be open
#                TCP port 9090 must also be open if the server is also
#                the Pyro nameserver (default case)

# if Pyro is not installed system wide, try this:
export PYTHONPATH=~/usr/Pyro-3.10/build/lib

# Some usage examples:

# run in parallel commands from test_parallel.input
cat test_parallel.input | ./parallel.py -i /dev/stdin

# same than before but with a progress bar
cat test_parallel.input | ./parallel.py -i /dev/stdin -v

# run in parallel commands from test_parallel.input and store output
# in output.log
./parallel.py -i test_parallel.input -o output.log

# same than before but with a user defined output printer
./parallel.py -i test_parallel.input -o output.log -p post_proc_example

## real world usage example
# 1) server side
./parallel.py -v -i many_commands.sh -o par_many_commands.log -s
# 2) client side, on each machine you want to join the computation
#    replace SERVER_NAME by the machine name from where you launched
#    parallel.py using -s
./parallel.py -c SERVER_NAME
# 3) be thrilled! ;)

par's People

Contributors

unixjunkie avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

par's Issues

add -n option

grouping of requests

ex: -n 10 will request 10 jobs each time

option is on the client side and
the default is 1 (current behavior)

resuming interrupted jobs

If PAR was killed, there should be a file
on disk allowing to continue the job from where it was left
or an option to tell PAR to ignore the first N commands
in a commands file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.