GithubHelp home page GithubHelp logo

tempbottle / lynx_hydrazine_ocelot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anshumang/lynx_hydrazine_ocelot

0.0 1.0 0.0 1.79 MB

Python 1.00% C 42.17% Shell 24.01% Batchfile 0.01% Perl 3.21% C++ 23.09% Prolog 0.01% Lex 0.13% Yacc 2.76% TeX 2.98% Objective-C 0.05% LLVM 0.60%

lynx_hydrazine_ocelot's Introduction

Lynx - A Dynamic Instrumentation System for Data-Parallel Applications on
       GPGPU Architectures          

Author: Naila Farooqui ([email protected])

GPU Lynx Website: http://code.google.com/p/gpulynx/

For more detailed documentation, please see: 
    http://code.google.com/p/gpulynx/w/list

For related publication, please see: 
    www.cc.gatech.edu/~naila/lynx.pdf

Overview
--------
As parallel execution platforms continue to proliferate, there is a growing need 
for real-time introspection tools to provide insight into platform behavior for 
performance debugging, correctness checks, and to drive effective resource 
management schemes. To address this need, we present the Lynx dynamic 
instrumentation system. Lynx provides the capability to write instrumentation 
routines that are (1) selective, instrumenting only what is needed, (2) transparent, 
without changes to the applications’ source code, (3) customizable, and (4) efficient.

Lynx was originally implemented as a branch of GPU Ocelot, a framework that provides 
run-time code generation of CUDA programs for heterogeneous architectures. Lynx now 
exists as a stand-alone, PTX editing tool, encapsulating only the necessary Ocelot 
dependencies (namely, Ocelot's PTX Parser, PTX IR and CFG/DFG Analyses components). 

Lynx can be built as a library (liblynx.so), where it can be linked with any runtime,
or as a Lynx runtime (liblynx_runtime.so), where it provides a default implementation 
of the CUDA runtime to directly support the execution of CUDA applications on NVIDIA
GPU devices.
 
 * GPU Ocelot: http://code.google.com/p/gpuocelot/

Building Lynx
-------------

Lynx depends on CUDA 4.0+, boost, flex, bison, scons and python (for building). 
So far, Lynx has only been developed and tested on Ubuntu 11.10. You can install 
the necessary packages on Ubuntu:

sudo apt-get install libboost-all-dev
sudo apt-get install flex bison scons python

Please be sure to install the CUDA toolkit (4.0 or higher) from NVIDIA's website.
Lynx currently supports PTX ISA 3.0 and requires a CUDA-capable (Fermi) GPU.

To build Lynx, use the following command:

scons -j<number-of-jobs>

To install Lynx (install dir: /usr/local/lib):

sudo scons install -j<number-of-jobs>

The build script will obtain all of the relevant Ocelot/Hydrazine dependencies 
before building Lynx.

Running CUDA apps with Lynx
---------------------------

Please note that to run Lynx with the currently available instrumentations, 
the 'configure.lynx' file and the "resources" directory need to be located in
the execution directory (i.e., the directory from where the CUDA application is
executed from).

Lynx currently provides the following instrumentations:

Activity Factor (activityFactor)
Branch Divergence (branchDivergence)
Clock Cycle Count (clockCycleCount)
Memory Efficiency (memoryEfficiency)

A sample 'configure.lynx' file is included. The associated instrumentation name
to be specified in the 'configure.lynx' file for each of the above instrumentations 
is specified in parantheses.

To run a CUDA application (for example, BlackScholes) with Lynx:

    LD_PRELOAD="$(PATH_TO_LYNX)/liblynx.so" ./BlackScholes

The default location for liblynx.so and liblynx_runtime.so is 
<lynx-dir>/.release_build/

lynx_hydrazine_ocelot's People

Contributors

anshumang avatar

Watchers

 avatar

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.