Skip to content

SLURM-RJMS-RESEARCH/libmsr

 
 

Repository files navigation

libmsr

Welcome to libmsr, a friendly (well, friendlier) interface to several of the model-specific registers in Intel processors.

version 0.1.17

Installation

Installation is simple. You will need cmake version 2.8 or higher.

mkdir BUILD && cd BUILD
cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/install
make
make install

Notes

This software depends on the files /dev/cpu/*/msr being present with r/w permissions. Recent kernels require additional capabilities. We have found it easier to use our own msr-safe kernel module, but running as root (or going through the bother of additing the capabilities to the binaries) are other options.

Call msr_init() before using any of the APIs.

For sample code, see libmsr_test.c in the test folder.

Our most up-to-date documentation for libmsr use is the pdf files in the documentation folder, however there is some additional useful information in API as well.

Please feel free to contact the authors with questions and suggestions.

Authors

About

Wrapper library for model-specific registers. APIs cover RAPL, performance counters, clocks and turbo.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 78.8%
  • Python 10.8%
  • C++ 5.2%
  • CMake 3.7%
  • Other 1.5%