Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/llnl/caliper-compiler

Compiler tools for Caliper
https://github.com/llnl/caliper-compiler

compiler

Last synced: 2 days ago
JSON representation

Compiler tools for Caliper

Awesome Lists containing this project

README

        

Caliper Compiler Suite (alpha)
==================================

This is an alpha release of a set of compiler tools that lives alongside Caliper.

Currently it is not fit for production use and is mainly here as a starting point
for other tool developers, feel free to email me at [email protected] with
questions though

Released under a BSD license, `LLNL-CODE-678900`.
See `LICENSE` file for details.

Building
--------

See the included Makefile for fuller docs, but for many

```
make LLVM_SRC_DIR=
```

Will work if the Clang plugin system is installed. This will create an executable
in /build called caliper_instrumenter

Usage
-------

That executable, caliper_instrumenter, can be run against a file to instrument all functions in it with Caliper. Work is being done to make this accept TAU or Score-P selective instrumentation files. There is also a file, caliper_instrumenter.cmake, which allows for use in cmake build systems like so

include(caliper-instrumenter.cmake)

```
add_[executable|library](mytarget )
instrument_target(mytarget)
```

Attribution
-----------------------

Authors

David Poliakoff ([email protected])

David Boehme ([email protected])

This work was inspired by Eli Bendersky's repo (https://github.com/eliben/llvm-clang-samples) showing how to write basic Clang plugins and build them, I highly recommend that if you're interested in developing these kinds of tools