GithubHelp home page GithubHelp logo

rootbeer1's Introduction

Rootbeer

The Rootbeer GPU Compiler makes it easy to use Graphics Processing Units from within Java.

Rootbeer is more advanced than CUDA or OpenCL Java Language Bindings. With bindings the developer must serialize complex graphs of objects into arrays of primitive types. With Rootbeer this is done automatically. Also with language bindings, the developer must write the GPU kernel in CUDA or OpenCL. With Rootbeer a static analysis of the Java Bytecode is done (using Soot) and CUDA code is automatically generated.

See doc/hpcc_rootbeer.pdf for the conference slides from HPCC-2012. See doc/rootbeer1_paper.pdf for the conference paper from HPCC-2012.

Rootbeer is licensed under the MIT license.

Development notes

Rootbeer was created using Test Driven Development and testing is essentially important in Rootbeer. Rootbeer is 20k lines of product code and 8.8k of test code and 48/58 tests currently pass on Windows, Linux and Mac. The Rootbeer test case suite covers every aspect of the Java Programming language except:

  1. native methods
  2. reflection
  3. dynamic method invocation
  4. sleeping while inside a monitor.

The original publication for Rootbeer was in HPCC-2012.
"Rootbeer: Seamlessly using GPUs from Java"
Philip C. Pratt-Szeliga, James W. Fawcett, Roy D. Welch.
HPCC-2012.

This work is supported by the National Science Foundation grant number MCB-0746066 to R.D.W. and God is Most High.

Work is on-going to improve performance with Rootbeer. Currently Rootbeer has competative speed when using single-dimensional arrays of primitive types.

Building

  1. Clone the github repo to rootbeer1/
  2. cd rootbeer1/
  3. ant jar
  4. ./pack-rootbeer (linux) or ./pack-rootbeer.bat (windows)
  5. Use the rootbeer1/Rootbeer.jar (not dist/Rootbeer1.jar)

Pre-Built Binaries

See here: http://rbcompiler.com/download.html

CUDA Setup

You need to have the CUDA Toolkit and CUDA Driver installed to use Rootbeer. Download it from http://www.nvidia.com/content/cuda/cuda-downloads.html

API

See the following links for help on the API:

  1. http://rbcompiler.com/
  2. http://rbcompiler.com/features.html
  3. https://github.com/pcpratts/rootbeer1/tree/develop/gtc2013/Matrix

About

Rootbeer is written by:

Phil Pratt-Szeliga
Syracuse University
[email protected]
http://trifort.org/
http://rbcompiler.com/

rootbeer1's People

Contributors

alightr avatar atom87lee avatar hgomez avatar julesgosnell avatar m1kc avatar pcpratts 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.