Skip to main content

Loop Kernel Analysis and Performance Modeling Toolkit

Project description

https://github.com/RRZE-HPC/kerncraft/blob/master/doc/logo/logo-lightbg.svg

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/.

https://travis-ci.org/RRZE-HPC/kerncraft.svg?branch=master https://codecov.io/github/RRZE-HPC/kerncraft/coverage.svg?branch=master Code Health

Installation

On most systems with python pip and setuputils installed, just run:

pip install --user kerncraft

for the latest release. In order to get the Intel Achitecture Code Analyzer (IACA), required by the ECM, ECMCPU and RooflineIACA performance models, read this and run:

iaca_get --I-accept-the-Intel-What-If-Pre-Release-License-Agreement-and-please-take-my-soul

Additional requirements are:
  • 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/RRZE-HPC/kerncraft/master/examples/machine-files/SandyBridgeEP_E5-2680.yml

wget https://raw.githubusercontent.com/RRZE-HPC/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 SandyBridgeEP_E5-2680.yml 2d-5pt.c -D N 10000 -D M 10000 add -vv for more information on the kernel and ECM model analysis.

Citations

When using Kerncraft for your work, please consider citing the following publication:

Kerncraft: A Tool for Analytic Performance Modeling of Loop Kernels (preprint)

J. Hammer, J. Eitzinger, G. Hager, and G. Wellein: Kerncraft: A Tool for Analytic Performance Modeling of Loop Kernels. In: Tools for High Performance Computing 2016, ISBN 978-3-319-56702-0, 1-22 (2017). Proceedings of IPTW 2016, the 10th International Parallel Tools Workshop, October 4-5, 2016, Stuttgart, Germany. Springer, Cham. DOI: 10.1007/978-3-319-56702-0_1, Preprint: arXiv:1702.04653``

Credits

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

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.7.0.tar.gz (127.5 kB view details)

Uploaded Source

Built Distributions

kerncraft-0.7.0-py3.6.egg (155.1 kB view details)

Uploaded Source

kerncraft-0.7.0-py3.5.egg (157.7 kB view details)

Uploaded Source

kerncraft-0.7.0-py3.4.egg (158.2 kB view details)

Uploaded Source

File details

Details for the file kerncraft-0.7.0.tar.gz.

File metadata

  • Download URL: kerncraft-0.7.0.tar.gz
  • Upload date:
  • Size: 127.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.4.6

File hashes

Hashes for kerncraft-0.7.0.tar.gz
Algorithm Hash digest
SHA256 6d3e371e1ced9004e1a9759e552fb1d78e85a0101db10b61311a263b404b0bdb
MD5 29c762f9ab5eca4f15e21f3b2909bc60
BLAKE2b-256 d34ee115d3d5dddab2eedd8de1659c687a7748ccbc91f9fcadc04bf43a874fac

See more details on using hashes here.

File details

Details for the file kerncraft-0.7.0-py3.6.egg.

File metadata

  • Download URL: kerncraft-0.7.0-py3.6.egg
  • Upload date:
  • Size: 155.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for kerncraft-0.7.0-py3.6.egg
Algorithm Hash digest
SHA256 f274bd6b47e006ea103ea782d071eaab00f3e13a64d9c57d70bb3b75110f9211
MD5 247d5dd424cba0d11768672ae530b770
BLAKE2b-256 be21758d15e5609a6c432af8712eeb0ff59dfa26a5cb607aae78b8ac9d9ad7c7

See more details on using hashes here.

File details

Details for the file kerncraft-0.7.0-py3.5.egg.

File metadata

  • Download URL: kerncraft-0.7.0-py3.5.egg
  • Upload date:
  • Size: 157.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6

File hashes

Hashes for kerncraft-0.7.0-py3.5.egg
Algorithm Hash digest
SHA256 77ca7cae088e1786c58991829067df5b5d1c63d62d1ea16329120e90b4fd1144
MD5 2e191bc63d1024bd6df02052e45da595
BLAKE2b-256 38a576951af399bcbd5572264d0c2ec0748c44618bfb6116fe423357b1310d51

See more details on using hashes here.

File details

Details for the file kerncraft-0.7.0-py3.4.egg.

File metadata

  • Download URL: kerncraft-0.7.0-py3.4.egg
  • Upload date:
  • Size: 158.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.4.6

File hashes

Hashes for kerncraft-0.7.0-py3.4.egg
Algorithm Hash digest
SHA256 5dd8c94088e336cda88b42eca0088a3ae1025bb3848d934f93a80f29306a299d
MD5 f6f214201e0603f3ea8deb06d8dba711
BLAKE2b-256 06e95b83b249e3d3b3dbecf8d4abd7e94cc513c719024f31c958530bff7b4bac

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