LLNL/caliper-compiler

Name: caliper-compiler

Owner: Lawrence Livermore National Laboratory

Description: Compiler tools for Caliper

Created: 2017-05-31 16:31:25.0

Updated: 2017-06-01 15:09:10.0

Pushed: 2017-06-02 18:14:47.0

Homepage: null

Size: 29

Language: C++

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

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 poliakoff1@llnl.gov 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

 LLVM_SRC_DIR=<your clang root 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)

[executable|library](mytarget <my source files>)
rument_target(mytarget)
Attribution

Authors

David Poliakoff (poliakoff1@llnl.gov)

David Boehme (boehme3@llnl.gov)

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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.