Coder Social home page Coder Social logo

siqiliocean / htool Goto Github PK

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

A collection of Bash scripts for managing tasks on a computing cluster managed by PBS, including checking node status, querying job information, and submitting jobs.

License: MIT License

Makefile 1.77% Fortran 2.49% Shell 95.74%

htool's Introduction

htool

htool is a collection of Bash scripts designed for managing tasks on a computing cluster managed by PBS. These scripts provide functionality to check node status, query job information, and submit jobs.

Scripts

hnode

hnode is a script to display information about nodes on a cluster, including all nodes, used nodes, rest nodes, and idle nodes of a specified queue.

hscan

hscan is a script to check the status of nodes in a cluster, determining if a node is online, idle, or occupied based on ping availability and CPU usage.

hstat

hstat is a script to query information about jobs running on a computing cluster using qstat, providing details such as job ID, queue name, processor information, node information, memory usage, and running path.

hscript

hscript is a script to copy the ${HTOOL}/hrun_exp to your run directory.

hrun_exp

hrun is an example script to submit jobs on the 'hydra' cluster using PBS directives. It allows users to customize job settings such as user name, job name, log file names, node number, processor per node, queue name, and executable command. It takes seconds to find out idle nodes.

Usage

  1. Clone the 'htool' repository:

    git clone https://github.com/SiqiLiOcean/htool.git
  2. Add the htool directory to PATH. For csh

    setenv HTOOL /YOUR_htool_PATH 
    setenv PATH ${HTOOL}:$PATH

    For bash

    export HTOOL /YOUR_htool_PATH 
    export PATH=${HTOOL}:$PATH
  3. Add the execute permission

    chmod u+x ${HTOOL}/h*
  4. Run the scripts as needed, following the usage instructions provided in each code.

Example

There is a 'hello' example in the directory exp for testing.

  1. Go into the exp directory.
    cd exp
  2. Compile the Fortran code.
    make
  3. Copy hrun_exp here as hrun and edit it.
    hscript hrun
  4. Submit the job in the parallel way.
    bash hrun

Author

htool is maintained by Siqi Li, SMAST.

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.