Giter Club home page Giter Club logo

batch-virtualenv-test's Introduction

proof of concept project to put together a python mpi application that can be run in the batch system of an HPC machine.

  • relies on system installed python packages like mpi4py and numpy.
  • uses pip to install a dependency into a virtual environment
  • installs itself into (libraries and application) into a virtual environment
  • runs on the compute nodes of an hpc machine.

Dependencies

required bootstrap:

  • python2
  • pip
  • virtualenv

required compiled libraries:

  • numpy
  • scipy
  • matplotlib & basemap
  • mpi4py

Bootstrap

Mac homebrew system

brew install mpich2
brew tap homebrew/science
brew tap homebrew/python
brew install numpy scipy matplotlib matplotlib-basemap
pip install mpi4py

Yellowstone

Note, yellowstone doesn't have virtualenv installed yet. You need to bootstrap it with:

    pip install --user virtualenv
    export PATH=$PATH:$HOME/.local/bin

Workflow

Users

    cd $(POSTPROCESSING_DIR)
    ./create_diags.sh
    # ./test-app-osx.run
    # or
    # bsub -PP93300606 < ./test-app-yellowstone.run
    

Developers

    # load modules if necessary
    module load python/2.7.7
    module load numpy/1.8.1
    module load scipy/0.15.1
    module load mpi4py/1.3.1

    make clobber-env
    make env
    . test-env/bin/activate
    make all
    make test
    # do development stuff....
    diag_util_test.py
    # mpiexec -np 4 diags_generator.py
    # DAV_CORES=4 execca mpirun.lsf diags_generator.py
    deactivate

batch-virtualenv-test's People

Contributors

bandre-ucar avatar bandre avatar bjandre 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.