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 publications in doc/.

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.2.dev1.tar.gz (119.2 kB view details)

Uploaded Source

Built Distribution

kerncraft-0.2.dev1.macosx-10.10-x86_64.tar.gz (223.3 kB view details)

Uploaded Source

File details

Details for the file kerncraft-0.2.dev1.tar.gz.

File metadata

File hashes

Hashes for kerncraft-0.2.dev1.tar.gz
Algorithm Hash digest
SHA256 f5814948d5748fd04ab2dd235af411d6cb1a3d4ae53da83b21b0c340cf9f81d0
MD5 0f475bdad29d1ca59e1d8027bc995655
BLAKE2b-256 fca5f97bce6ffebdc8d0cced5cbf484a8b6b5205153a6cd5823fe01d4bed51f1

See more details on using hashes here.

File details

Details for the file kerncraft-0.2.dev1.macosx-10.10-x86_64.tar.gz.

File metadata

File hashes

Hashes for kerncraft-0.2.dev1.macosx-10.10-x86_64.tar.gz
Algorithm Hash digest
SHA256 e97358d871395b80a8b75d8ced15c4f39d413142a3942c19307e02b797f72f9a
MD5 90d24f2a1cfa6fa6233cfda9ddcdb40d
BLAKE2b-256 1b097594a3e1a8568d6bf625a91f784aa621cfd75d4d05feb776f780aa948452

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