Mini tool to quickly analyze where threads are placed on the hardware.
- 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.
mkdir build && cd build
cmake ..
makempirun -n 2 ./printPinningThis prints a list of all threads that were launched and their hardware location.
OMP_PROC_BIND=true \
OMP_PLACES=cores \
OMP_NUM_THREADS=8 \
mpirun -n 4 ./printPinning \
| sort