Giter VIP home page Giter VIP logo

rcuda's Introduction

This RCUDA package provides a reasonably comprehensive interface to the CUDA SDK. This allows one to work with a GPU via R code. We can invoke CUDA code on the GPU, put data on the GPU and bring it back into R. We have access to devices, contexts, streams, events, and all of the CUDA concepts.

The package is now updated to work with CUDA SDK 7.5.

The package requires the RAutoGenRunTime package to be installed. This is available on github and omegahat.net and omegahat.ucdavis.edu.

You may need to set LD_LIBRARY_PATH - or DYLD_LIBRARY_PATH on OS X - to allow the system find the CUDA libraries. They are often installed in /usr/local/cuda/lib.

The code in the package is a mix of manually written and programmatically generated code. The R code in TU/clang.R is used to generate the code and can be re-run for different versions of CUDA. TU/clang.R

rcuda's People

Contributors

duncantl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rcuda's Issues

problems with cudaversion filename and path

I get an error on configure:

gcc: error: cudaVersion.c: No such file or directory

Because (1) the file seems now to be called cudaversion.c (all lowercase), and (2) at least on my Ubuntu linux, I need to specify the current directory when calling the resulting binary (./cudaVersion instead of cudaVersion)

This is fixed with changing the following two lines (lines 85 & 86) of configure.in

---$CC -o cudaVersion -I$CUDA_INC_DIR cudaVersion.c -L$CUDA_LIB_DIR -lcuda -lcudart $RPATH
---CUDA_VERSION=`cudaVersion`
+++$CC -o cudaVersion -I$CUDA_INC_DIR cudaversion.c -L$CUDA_LIB_DIR -lcuda -lcudart $RPATH
+++CUDA_VERSION=`./cudaVersion`

And then regenerating configure with autoconf

cu_computemode_exclusive no longer exists?

When building/installing RCUDA, I get the following error:

autoEnumConverters.c: In function ‘Renum_convert_CUcomputemode_enum’:
autoEnumConverters.c:1073:13: error: ‘CU_COMPUTEMODE_EXCLUSIVE’ undeclared (first use in this function)
        case CU_COMPUTEMODE_EXCLUSIVE:

There is evidence on the internet that CU_COMPUTEMODE_EXCLUSIVE used to be a member of the CUcomputemode_enum but now it seems there is only CU_COMPUTEMODE_EXCLUSIVE_PROCESS ?

Removing lines 1073-1075 of autoEnumConverters.c allowed for successful build/install on my box (Ubuntu 16.04, Cuda 8.0.61, R 3.4.0):

---       case CU_COMPUTEMODE_EXCLUSIVE:
---           elName = "CU_COMPUTEMODE_EXCLUSIVE";
---       break;

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.