Giter VIP home page Giter VIP logo

smartdispatch's Introduction

Build Status Coverage Status Scrutinizer Code Quality

Smart Dispatch

A batch launcher for supercomputers using qsub/msub (Torque).

Installing

pip install git+https://github.com/SMART-Lab/smartdispatch

Usage

See smart_dispatch.py --help

Examples

###Basic A batch composed of four variations of a simple command.

smart_dispatch.py -q qtest@mp2 launch python my_script.py [1 2] 80 [tanh sigmoid] 0.1

This will generate 4 different commands and launch them on the queue qtest@mp2:

python my_script.py 1 80 sigmoid 0.1
python my_script.py 1 80 tanh 0.1
python my_script.py 2 80 sigmoid 0.1
python my_script.py 2 80 tanh 0.1

The output/error logs in are saved in the folder ./SMART_DISPATCH_LOGS/{job_id}/logs/.

###Using a pool of workers smart_dispatch.py -q qtest@mp2 -p 2 launch python my_script.py [1 2] 80 [tanh sigmoid] 0.1

This will behave exactly the same way as the basic example above but the number of jobs launched on the supercomputer will be 2 instead of 4 and each job will be in charge of running 2 commands each.

###Resuming a job (if launched using pool of workers) Given the job_id (i.e. folder's name in SMART_DISPATCH_LOGS/{job_id}/) one can relaunch jobs that did not finished executing(maybe because of exeeded walltime).

smart_dispatch.py -q qtest@mp2 -p 2 resume job_id

smartdispatch's People

Contributors

laulysta avatar marccote avatar mgermain avatar samuelstjean avatar

Watchers

 avatar

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.