Skip to content

wujingyue/slicer

Repository files navigation

Schedule Specialization Framework

Schedule specialization framework is a research prototype we created at Columbia that specialize a multithreaded program towards a schedule for better analysis. We implemented this framework based on the LLVM compiler. Given the bitcode of a program and a schedule in the format of a total order of synchronizations, the framework specializes the program with respect to the schedule and emits the bitcode of the specialized program for more precise analysis.

The entire schedule specialization system contains several components: the Peregrine determinisitc multithreading system, a precise alias analysis based on bddbddb (bc2bdd), and the specialization framework. This repository contains the source code that implements the specialization framework. The source code of the Peregrine system is available here, and we are in the process of open-sourcing bc2bdd.

Publications

Sound and Precise Analysis of Parallel Programs through Schedule Specialization

Installation

  1. Download the source code of LLVM 3.1 and clang 3.1 from LLVM Download Page. Other version of LLVM and clang are not guaranteed to work with NeonGoby.

  2. Build LLVM and clang from source code.

cd <llvm-source-code-root>
mv <clang-source-code-root> tools/clang
./configure --prefix=<where-you-want-to-install-LLVM>
make [-j] install
  1. Add LLVM's install directory to PATH, so that you can run LLVM commands (e.g., llvm-config) everywhere.

  2. To verify whether LLVM/clang 3.1 is correctly, compile and run a simple hello world program. Clang 3.1 does not work with some new versions of Ubuntu on some programs using STL, because the default include paths Clang sets up are incomplete. In that case, you may want to apply patches/clang-3.1-ubuntu.patch.

cd <llvm-source-code-root>
patch -p1 < patches/clang-3.1-ubuntu.patch
  1. Build the specialization framework (a.k.a. slicer)
git clone https://github.com/wujingyue/slicer.git
cd slicer
git submodule init
git submodule update
./configure --prefix=`llvm-config --prefix`
make
make install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published