Giter VIP home page Giter VIP logo

cudarray's Introduction

CUDA-based NumPy

CUDArray is a CUDA-accelerated subset of the NumPy library. The goal of CUDArray is to combine the easy of development from the NumPy with the computational power of Nvidia GPUs in a lightweight and extensible framework.

CUDArray currently imposes many limitations in order to span a manageable subset of the NumPy library. Nonetheless, it supports a neural network pipeline as demonstrated in the project deeppy.

Features

  • Drop-in replacement for NumPy (limitations apply).
  • Fast array operations based on cuBLAS, cuRAND and cuDNN.
  • (somewhat) Simple C++/CUDA wrapper based on Cython.
  • Extends NumPy with specialized functions for neural networks.
  • CPU fall-back when CUDA is not available.

Installation

With CUDA back-end

First, you should consider specifying the following environment variables.

  • INSTALL_PREFIX (default: /usr/local). Path where to install libcudarray. For the Anaconda Python distribution this should be /path/to/anaconda.
  • CUDA_PREFIX (default: /usr/local/cuda). Path to the CUDA SDK organized in bin/, lib/, include/ folders.
  • CUDNN_ENABLED. Set CUDNN_ENABLED to 1 to include cuDNN operations in libcudarray.

Then build and install libcudarray with

make
make install

Finally, install the cudarray Python package:

python setup.py install
Without CUDA back-end

Install the cudarray Python package:

python setup.py --without-cuda install

Documentation

Please consult the technical report for now. Proper documentation is on the TODO list.

Contact

Feel free to report an issue for feature requests and bug reports.

For a more informal chat, visit #cudarray on the freenode IRC network.

Citation

If you use CUDArray for research, please cite the technical report:

@techreport{larsen2014cudarray,
  author = "Larsen, Anders Boesen Lindbo",
  title = "{CUDArray}: {CUDA}-based {NumPy}",
  institution = "Department of Applied Mathematics and Computer Science, Technical University of Denmark",
  year = "2014",
  number = "DTU Compute 2014-21",
}

TODO

  • Proper transpose support,
  • Add functionality for copying from NumPy array to existing CUDArray array.
  • FFT module based on cuFFT.
  • Unit tests!
  • Add documentation to wiki.
  • Windows/OS X support.

Influences

Thanks to the following projects for inspiration.

cudarray's People

Contributors

andersbll avatar

Watchers

James Cloos avatar  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.