Giter Site home page Giter Site logo

Comments (2)

ompiteam avatar ompiteam commented on September 3, 2024

Imported from trac issue 46. Created by jsquyres on 2006-08-30T10:29:01, last modified: 2006-09-13T09:02:35

from mtt.

ompiteam avatar ompiteam commented on September 3, 2024

Trac comment by jsquyres on 2006-09-13 09:02:35:

(In [323]) Fixes #46.

The OMPI MPI Install module creates a perl script in the $bindir of
each OMPI installation that it creates called mtt_ompi_cleanup.pl.
This script searches the process list for orteds and kills them --
except for its own parent orted (I thought this was particularly
clever ;-) ). This allows us to launch this script via orterun
itself, and therefore use whatever native launching mechanism is used
via ORTE (e.g., slurm, pbs, rsh/ssh, etc.).

So there's now a new after_each_exec section in the OMPI core template
that essentially runs:

{{{
orterun $args -np $MTT_TEST_NP --prefix $MTT_TEST_PREFIX mtt_ompi_cleanup.pl
}}}

The script will be found because OMPI's $bindir is automatically put
in the path by MTT. It'll run on all nodes and kill any orteds that
it finds (except its own). Then it will whack any session directories
that it finds (including its own -- this is safe), and exit. Since
its parent orted wasn't killed, it'll exit normally and the orterun
from the after_each_exec will complete normally.

The only drawback to this scheme is that we run $np copies of the
script, so we could be running multiple copies of the script on each
node. This is a bit wasteful, but it does work. Further optimization
someday to figure out how to only run 1 copy of the script on each
node.

from mtt.

Related Issues (20)

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.