This is the original autopin implementation. Feel free to try it, but it may be outdated. Try Autopin+ for a current tool.
Autopin is a thread to core pinning tool, based on perfmon. To use this tool, the perfmon patch must be installed. Furthermore for NUMA-architectures the automatic page migration patch by Lee Schermerhorn must be installed (Patch). Autopin is designed to work with the Intel compiler.
-
make in the autopin folder
-
start autopin: OMP_NUM_THREADS=4 SCHEDULE=0123,0246,4561,3254 autopin/autopin --follow-all --init-time 5 -t 1 -w 5 -e INSTRUCTIONS_RETIRED testprog/exampleprogram