Skip to main content

Loop Kernel Analysis and Performance Modeling Toolkit

Project description

kerncraft

Loop Kernel Analysis and Performance Modeling Toolkit

This tool allows automatic analysis of loop kernels using the Execution Cache Memory (ECM) model, the Roofline model and actual benchmarks. kerncraft provides a framework to investigate the data reuse and cache requirements by static code analysis. In combination with the Intel IACA tool kerncraft can give a good overview of both in-core and memory bottlenecks and use that data to apply performance models.

For a detailed documentation see this master’s thesis: pdf

Installation

Run: pip install kerncraft

Additional requirements are:
  • Intel IACA tool, with (working) iaca.sh in PATH environment variable (used by ECM, ECMCPU and Roofline models)

  • likwid (used in Benchmark model and by likwid_bench_auto.py)

Usage

  1. Get an example kernel and machine file from the examples directory

wget https://raw.githubusercontent.com/cod3monk/kerncraft/master/examples/machine-files/phinally.yaml

wget https://raw.githubusercontent.com/cod3monk/kerncraft/master/examples/kernels/2d-5pt.c

  1. Have a look at the machine file and change it to match your targeted machine (above we downloaded a file for a sandy bridge EP machine)

  2. Run kerncraft

kerncraft -p ECM -m phinally.yaml 2d-5pt.c -D N 10000 -D M 10000 add -vv for more information on the kernel and ECM model analysis.

Credits

Implementation: Julian Hammer ECM Model (theory): Georg Hager, Holger Stengel, Jan Treibig

License

AGPLv3

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kerncraft-0.1.dev12.tar.gz (48.2 kB view details)

Uploaded Source

Built Distribution

kerncraft-0.1.dev12.macosx-10.10-x86_64.tar.gz (78.7 kB view details)

Uploaded Source

File details

Details for the file kerncraft-0.1.dev12.tar.gz.

File metadata

File hashes

Hashes for kerncraft-0.1.dev12.tar.gz
Algorithm Hash digest
SHA256 39930a06cb42df7151db61840aaa4bcb0b490db2b7f1feb2a955134deb26644a
MD5 64efa616890f8bbedb5f7df687890889
BLAKE2b-256 732f1925037e0be3a139caf8cd8a5bfd79eb116cc5cd05bd64af9df4edf81bf7

See more details on using hashes here.

File details

Details for the file kerncraft-0.1.dev12.macosx-10.10-x86_64.tar.gz.

File metadata

File hashes

Hashes for kerncraft-0.1.dev12.macosx-10.10-x86_64.tar.gz
Algorithm Hash digest
SHA256 8349a46a1b7e2d24000cabce3978c790cf401741b22c842ce6a757c811a761de
MD5 7076108fb785ec79ffad5735e78f60c4
BLAKE2b-256 36a304b9f85f1f21b1f7e00db23a427eac5ae28efa24a336ced6223e385072de

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page