Code Monkey home page Code Monkey logo

taskprof's Introduction

TaskProf is an tool for identifying performance bottlenecks in task-based parallel programs written in C++ using Intel Threading Building Blocks library. For details on how TaskProf works, please refer to our paper.

Requirements

TaskProf relies on hardware support for performance counters. To check if the machine supports hardware performance counters,

dmesg | grep PMU

If the output is "Performance Events: Unsupported...", then the machine does not support performance counters and TaskProf cannot be executed on the machine.

Installation

Install perf. On Ubuntu the following command can be used to install perf.

sudo apt-get install linux-tools-common linux-tools-generic linux-tools-`uname -r`

Install TaskProf.

source build.sh

Usage

We demonstrate how to use TaskProf on the tree sum test program under the tests directory. To execute TaskProf on the tree sum test program:

cd <path_to_TaskProf>/tests/treesum
make
./treesum

This generates the profile data from the execution of the program. Next execute TaskProf's post-processing program to generate the profile.

$TP_GENPROF/gentprof

Note, TP_GENPROF is an environment variable already setup by the build script.

This generates the parallelism profile in the file ws_profile.csv. The first row of the profile describes what each column represents. The second row specifies the parallelism of the entire program and the percentage of work performed on the critical path by the main function. The rest of the rows specify the parallelism and the critical path percentage for each static spawn site in the program.

taskprof's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

taskprof's Issues

`perf list` event name change

build.sh detects the "cpu-cycles" event exists or not and decides whether to compile or not. Yet the name of PMU event seems to be changed to "cpu-cycles OR cpu/cpu-cycles" on a Xeon E5 machine which runs Ubuntu 16.04.

Delaunay Triangulation not getting parallelism as expected.

We tried to reproduce the results using the benchmark provided, and got similar results as described in the paper except for Delaunay Triangulation. The annotated regions show almost no parallelism. The output is as follows:

region_info.csv:

4228347,IO.h,184
4228158,IO.h,176
4227901,IO.h,159
4227424,IO.h,184
4227218,IO.h,176
4226941,IO.h,159
4254744,delaunay.C,275
4254603,delaunay.C,263
4206013,IO.h,89 

region_all.csv:

Regions Optimization factor, Whole program parallelism
50,1.75187
100,1.75639
200,1.75866 
400,1.7598 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.