GithubHelp home page GithubHelp logo

k8s-workflow-distpara's Introduction

k8s-workflow-distpara


how-to-run:

$ python spawn.py $SU_USR $SU_UID $SU_GID $SRCENVNAME $HOOKCMD $LOGFILE
  • SU_USR: username of subtituting user
  • SU_UID: uid (user-id) of subtituting user
  • SU_GID: gid (group-id) of subtituting user
  • SRCENVNAME: source condaenv name
  • DSTENVNAME: destination condaenv name (for environment export)
  • HOOKCMD: "/bin/sleep infinity"
  • LOGFILE: destination for logfile, currently not used

example:

$ python spawn.py xo 606200001 606300000 py36tf114hvdgpu "/bin/sleep infinity" /dev/null

bare command line in spawn.py (only for reference)

mpirun -np 3 --hostfile /etc/hostfile -x LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libhwloc.so.5:/usr/lib/x86_64-linux-gnu/libjemalloc.so bash -c 'eval "$(/opt/conda/bin/conda shell.bash hook)";conda activate py36tf114hvdgpu;python workspace/horovod_test/horovod_tensorflow_mnist_0_18_2.py;'; mpirun -np 2 --hostfile /etc/hostfile_workers -x LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libhwloc.so.5:/usr/lib/x86_64-linux-gnu/libjemalloc.so bash -c 'eval "$(/opt/conda/bin/conda shell.bash hook)";conda activate py36tf114hvdgpu;kill -SIGTERM $(cat /var/run/wetrun.pid);'; kill -SIGTERM $(cat /var/run/wetrun.pid);

# image type A:

horovod/horovod:0.18.1-tf1.14.0-torch1.2.0-mxnet1.5.0-py3.6

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.