GithubHelp home page GithubHelp logo

affinity-test's Introduction

affinity-test

可视化进程绑定的小工具

如何使用

在有 OpenMP 和 MPI 的环境下,运行 make 即可得到 affinity-test。它会打印出每个进程和线程的核心绑定状态,并生成 affinity.gnuplot 可视化绑定关系。如果提供 -p 选项,则还会调用 gnuplot 生成 PNG。

备注:

  1. OpenMPI 在 npernode <=2 时默认是 --bind-to core。如果用多线程,记得要修改这个参数,否则一个进程只会绑定在一个 core 上(1-2 个 hardware thread)。
  2. 默认情况下,OMP_NUM_THREADS 等于 cpu affinity 的个数,MPI 环境下需要手工指定,避免 spawn 过多线程。

affinity-test's People

Contributors

jiegec avatar harry-chen avatar

Stargazers

aochen avatar  avatar Mingjie LIU avatar YangKai avatar openGiGi avatar  avatar 皇心 avatar  avatar EnanaShinonome avatar La Eako Vo avatar

Watchers

 Liu Xiaoyi avatar Yuxiang Zhang avatar  avatar Wende Tan avatar  avatar Runji Wang avatar  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.