Skip to content

FG-TUM/PrintPinning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrintPinning

Mini tool to quickly analyze where threads are placed on the hardware.

Requirements

  • C++ compiler
  • OpenMP
  • MPI
  • (optional) lscpu
  • (optional) grep

Optional requirements are to detect hardware characteristics automatically. If this fails the user can set them in CMake manually.

Build

mkdir build && cd build
cmake ..
make

Run

mpirun -n 2 ./printPinning

This prints a list of all threads that were launched and their hardware location.

Example usage

OMP_PROC_BIND=true          \
OMP_PLACES=cores            \
OMP_NUM_THREADS=8           \
mpirun -n 4 ./printPinning  \
    | sort

About

Mini tool to quickly analyze where threads are placed on the hardware.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published