Skip to content

Chadi-akel/cere

 
 

Repository files navigation

CERE v0.2.2

Build Status

Codelet Extractor and REplayer (CERE) is an open source framework for code isolation. CERE finds and extracts the hotspots of an application as isolated fragments of code, called codelets. Codelets can be modified, compiled, run, and measured independently from the original application. Code isolation reduces benchmarking cost and allows piecewise optimization of an application. Unlike previous approaches, CERE isolates codes at the LLVM Intermediate Representation level. Therefore CERE is language agnostic and supports many input languages such as C, C++, Fortran, and D. CERE automatically detects codelets invocation that have the same performance behavior. Then, it selects a reduced set of representative codelets and invocations, much faster to replay, which still captures accurately the original application. In addition, CERE supports recompiling and retargeting the extracted codelets. Therefore, CERE can be used for cross-architecture performance prediction or piecewise code optimization.

Installation

Please follow the instructions in INSTALL.md.

For OpenMP support please switch to OpenMP branch and follow the instructions in INSTALL.md.

Supported platforms

For now CERE only supports the Linux operating system. We have tested different versions of kernels in the 2.6 series. CERE has been tested mainly on x86_64 Debian and Ubuntu distributions. It has been tested mainly with LLVM versions ranging from 3.3 to 3.5. But the OpenMP branch works with LLVM 3.8.

CERE capture and replay is performed in user mode, but requires that /proc/sys/kernel/randomize_va_space is set to 1 or 2. This is the default on most linux distribution.

CERE is an alpha release, if you experience bugs during capture and replay please report them using the issue tracker. Thanks!

Documentation

New users should start by reading CERE tutorial.

Once installation is complete, a set of man pages for cere commands is available in the doc/ directory. To check a command use man -M <cere-path>/doc <command>. For example, to read the manual of cere-configure you can type:

man -M doc/ cere configure

Bugs, Feedback and Contributions

The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.

For more general questions or discussions please use the cere-dev@googlegroups.com mailing list.

How to cite CERE ?

If you use CERE in your research, please cite the following paper:

@article{CERE,
    title = {{CERE: LLVM Based Codelet Extractor and REplayer for Piecewise
    Benchmarking and Optimization}},
    author = {de Oliveira Castro, Pablo and Akel, Chadi and Petit, Eric and Popov,
    Mihail and Jalby, William},
    journal = {ACM Transactions on Architecture and Code Optimization (TACO)},
    volume = {12},
    number = {1},
    pages = {6},
    year = {2015},
    publisher = {ACM},
    doi = {10.1145/2724717}
    }

Thanks !

Contributors

CERE contributors are listed in the THANKS file.

License and copyright

Copyright (c) 2013-2015, Universite de Versailles St-Quentin-en-Yvelines

CERE is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

About

CERE: Codelet Extractor and REplayer

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 49.6%
  • Fortran 42.5%
  • C++ 3.3%
  • Python 2.6%
  • Shell 0.6%
  • Roff 0.4%
  • Other 1.0%