Coder Social home page Coder Social logo

soarlab / gklee Goto Github PK

View Code? Open in Web Editor NEW
2.0 12.0 0.0 53.48 MB

GKLEE is a symbolic analyser and test generator tailored for CUDA C++ programs

Perl 0.22% Cuda 1.68% Ruby 0.02% C++ 47.71% C 41.61% Shell 0.18% Objective-C 5.78% D 1.23% JavaScript 0.33% Python 0.35% OCaml 0.05% Java 0.02% Erlang 0.01% Emacs Lisp 0.83%

gklee's Introduction

GKLEE is a symbolic analyser and test generator tailored for CUDA C++ programs,
it supports almost all of CUDA intrinsic functions in kernel code and majority 
of CUDA runtimes in host code. For more details, please visit GKLEE's homepage:
www.cs.utah.edu/fv/GKLEE

======================= Build GKLEE ToolChain ===========================

1. Before you install the GKLEE toolchain, please ensure "flex" and "bison"
   are both installed in your Linux system.

2. In the 'Gklee' dir, and run the script 'BuildGklee'. 
   You will be asked to build Clang/LLVM and GKLEE with the 
   "Release" or "Debug" mode. This script is able to download 
   and build all necessary parts automatically.

======================= Set Environment Variables =========================

1. After you finish the instalation, please customize the environment variables
   in the following two ways:
 
   -- Add the following lines to your /home/[username]/.bashrc file
   -- Create an environment file including the following lines

   export KLEE_HOME_DIR=/Path/To/Gklee
   export PATH=$KLEE_HOME_DIR/bin:$KLEE_HOME_DIR/Gklee/Release+Asserts/bin:$KLEE_HOME_DIR/llvm/Release+Asserts/bin:$PATH

   NOTE: The above environment variables are present under the "Release" building mode, you should adjust "Release" to "Debug" accordingly
         if you build GKLEE under the "Debug" mode.

======================= Run GKLEE =========================

After building GKLEE and setting environment variables properly, you could run GKLEE.

1. Compile your CUDA programs into LLVM bytecode with the command: 

   gklee-nvcc xxx.cu [-o executable] [other options used in nvcc ...] 
   
   NOTE: if you do not specify a executable name, gklee-nvcc will use the prefix of the CUDA program 
   as the default name

2. Run your program with GKLEE command

   gklee executable [Normal Mode] 
   gklee --symbolic-config executable [Parametric Flow Mode] 

3. The test cases will be generated in the same dir where you execute gklee, 
   and appear as 'klee-out-[number]' and 'klee-last'.

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.