[R-sig-hpc] Using GPU, CUDA with R

Brian G. Peterson brian at braverock.com
Tue Sep 15 12:54:53 CEST 2009


Hodgess, Erin wrote:
> Hi all
>
> I tried to install gputools on Ubuntu Jaunty Jackalope but got the following errors:
>
>
> erin at erin-laptop:~/Desktop/R-2.9.2/bin$ ./R CMD INSTALL gputools_0.1-3.tar.gz 
> * Installing to library ‘/home/erin/Desktop/R-2.9.2/library’
> * Installing *source* package ‘gputools’ ...
> checking "environment variable CUDA_HOME"... "CUDA_HOME not set; using default /usr/local/cuda"
> checking for /usr/local/cuda/bin/nvcc... yes
> "nvcc found"
> checking "whether this is the 64 bit linux version of CUDA"... checking for /usr/local/cuda/lib64/libcublas.so... no
> "no -- using /usr/local/cuda/lib for CUDA libs"
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> R was not built as a library
> R was not built as a library
> configure: creating ./config.status
> config.status: creating src/Makefile
> config.status: creating R/gpuSvm.R
> ** libs
> ** arch - 
> /usr/local/cuda/bin/nvcc -c -I/usr/local/cuda/include -Xcompiler " -fpic" rinterface.cu -o rinterface.o
> rinterface.cu:17:14: error: R.h: No such file or directory
> make: *** [rinterface.o] Error 255
> ERROR: compilation failed for package ‘gputools’
> * Removing ‘/home/erin/Desktop/R-2.9.2/library/gputools’
> erin at erin-laptop:~/Desktop/R-2.9.2/bin$ 
>   
Start with

apt-get install r-base-dev


This will install the required R header files to link packages against.

I also notice that you don't have 64 bit libs installed, but I don't 
know if this is appropriate because you did not include other details of 
your hardware.

Regards,

- Brian

-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



More information about the R-sig-hpc mailing list