Giter Club home page Giter Club logo

multinode_pbs's Introduction

MULTINODE ON PBS CLUSTER ENVIRONMENT

This repo contains instructions to launch multinode scripts on a pbs cluster, setting all the ENV_VARIABLES needed for a multi-gpu script with pytorch or pytorch Lightning.

STEPS TO TAKE

  1. test.sh: launches the pbs command and set up python script.
  2. multinode_scripts/multinode.sh: finds the environment variables to be defined. Also launches the mpirun command from master node. Check line 75 which loades the appropriate module (on my cluster) and the - prefix option of the mpirun command at line 71 (probably need to change it on a different cluster).
  3. multinode_scripts/run.sh: Take care of launching the final script on each node, adding the final env variable.

ENV VARIABLES TO BE SET

  1. MASTER_ADDR: address of the master node.
  2. MASTER_PORT: free communication port on the master node.
  3. WORLD_SIZE: total number of processes used (usually num_gpu * num_nodes).
  4. NODE_RANK: number rank, different for each node (master is usually 0).

USEFUL RESOURCES

USEFUL PBS COMMANDS

  • qstat -fQ: see permissions of Queues (e.g. max num of parallel jobs)
  • pbsnodes -aSj | grep -F 'gnode' | grep -F 'free': see all free gnode.
  • qstat -wan1 -u $user: monitor all launched jobs and requested resources by $user.
  • qstat -u $user | grep "$user" | cut -d"." -f1 | xargs qdel: kill all jobs of $user.
  • qstat -$user | grep "R" | cut -d"." -f1 | xargs qdel: kill all the running jobs of $user.
  • qstat -u $user | grep "Q" | cut -d"." -f1 | xargs qdel: kill all the queued jobs of $user.

multinode_pbs's People

Contributors

serezd avatar

Stargazers

 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.