Coder Social home page Coder Social logo

jrmxn / habaneromsubmit Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 549 KB

For submission of Matlab functions/scripts (with Matlab functions/scripts) to Columbia University's Habanero HPC.

License: MIT License

MATLAB 99.61% Shell 0.39%
columbia university hpc submission

habaneromsubmit's Introduction

Introduction

Author: James McIntosh
Version: 0.0.3

Purpose

I was getting tired of writing custom submission scripts for every project I was working on. These are basic scripts to automatically submit multiple parallel jobs to Columbia's Habanero HPC. Includes various temporary directory settings to try to make the parallelisation more stable. (Each folder has submission scripts for a different project). Should work with other SLURM systems but paths may require tweaking. Tested mainly on Ubuntu 18.04, although should now work on Windows systems too.

Other info

https://wikis.cuit.columbia.edu/confluence/display/rcs/Habanero+-+Job+Examples https://github.com/gaoyuanjun/hpc_tutorial

Quick Submit

Archives the folder you specify, sends it to the cluster and runs the function you specify within that folder.

Makes use of SSH/SFTP/SCP For Matlab (v2) to connect to the cluster. This should be downloaded and placed in the auxf directory. Also uses (already in auxf) findobj so that the passwords that get used don't stay in Matlab history (definitely not guaranteed). It's also possible to load the password from a .mat file stored on disk (which would usually be stored encrypted).

Example use:

matdir = '/hdd/Cloud/project1';
matname = 'project1';%project name
d.n_par = 24;
d.walltime = '03:00:00';
matfunc = "function_name_to_run";%runs function_name_to_run.m
hab_submit(columbia_id,account_type,matfunc,matdir,matname,'n_par',d.n_par,'walltime',d.walltime);

Will move matdir to the cluster after archiving into a folder on Habanero named project1. Will then run "function_name_to_run" from within project after starting the parallel pool.

If project1 results are being written (for example) to folder 'sim' in 'project1', then sim folder can be retrieved like so:

hab_recover(columbia_id,account_type,'sim','project1');

habaneromsubmit's People

Contributors

jrmxn avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

kearlay thecobb

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.