Coder Social home page Coder Social logo

xthi's Introduction

xthi

xthi is an executable program which shows physical process/thread placement when run using MPI/OpenMP.

Compilation

Compilation on ARCHER2 (all programming environments) is via the Makefile in the src directory

cd src
make

This compiles versions both with (xthi_mpi_mp) and without (xthi_mpi) OpenMP.

Usage

For example, using srun as parallel launch

export OMP_NUM_THREADS=1
srun ./xthi [options]

A summary of nodes is printed, followed by a summary of MPI task/thread placement. As we are interested in physical placement, it is convenient to print the latter in node order. Node 0 is defined by the placement of MPI rank 0 in the communicator provided (MPI_COMM_WORLD for the xthi application), but otherwise no assumptions about order are made.

Options

-c 1|2|3    report on Cartesian communicator with given number of dimensions
-d          report start and end time/date
-g          report sched_getcpu() as "cpu" (as well as cpu set as "affinity")
-r          use "reorder" true in MPI_Create_create() (when using -c)
-s seconds  wait for given number of seconds before exiting with MPI_Finalize().
            This can be useful to prevent immediate exit of the application.
-t          report on thread 0 only; default is to report placement for all threads.

If the option -c is specified, the Cartesian information is appended as

Node    0, rank    0, thread   0, (affinity =    0)  Cartesian    0 ( 0  0  0)
Node    0, rank    1, thread   0, (affinity =    1)  Cartesian    1 ( 0  0  1)
Node    0, rank    2, thread   0, (affinity =    2)  Cartesian    4 ( 0  1  0)
Node    0, rank    3, thread   0, (affinity =    3)  Cartesian    5 ( 0  1  1)

where the first column after Cartesian is the rank in the Cartesian communicator, and the Cartesian co-ordinates follow in brackets. The Cartesian rank may or may not be the same as the rank in MPI_COMM_WORLD (reported in the fourth column).

xthi's People

Contributors

kevinstratford avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

xthi's Issues

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.