GithubHelp home page GithubHelp logo

spaak / myqsub Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 18 KB

A simple Python script for easily submitting jobs to an HPC cluster

License: GNU General Public License v3.0

Python 100.00%

myqsub's Introduction

myqsub

A simple Python script for easily submitting jobs to an HPC cluster

Copyright 2019 Eelke Spaak, Donders Institute, Nijmegen Licensed under GPLv3

Use as:

myqsub.qsub('walltime=01:00:00,mem=4gb', 'mymodule', 'myfunction', range(10), power=3)

to execute mymodule.myfunction 10 times with arguments 0-9, and kwarg power=3. Multiple arguments are supported (each iterable needs to be of the same length), and multiple kwargs as well (kwargs are passed as-is to each job).

2nd example to understand multiple argument lists:

myqsub.qsub('walltime=00:20:00,mem=4gb', 'mymodule', 'computeproduct', [1,2,3], [4,5,6])

will launch computeproduct(1,4), computeproduct(2,5), and computeproduct(3,6).

You can specify a logdir for stderr and stdout logs of the jobs, by default this is /.pythonjobs/.

Note myqsub.qsub does not capture job output. It is recommended to have all job output go via disk. The same goes for elaborate job input. myqsub.qsub will print job argumenst into text, so it's recommended to only use numbers (for kwargs, strings will work).

myqsub's People

Contributors

spaak avatar

Stargazers

Olympia Colizoli 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.