Welcome to gpuRcuda! This package is designed to be an extension upon the more general gpuR package. Essentially, this package creates a new series of classes that mirror those from gpuR classes. The key aspect of this package is to allow the user to use a CUDA backend where the NVIDIA specific language will improve overall performance.
The syntax is designed to be identical to gpuR
ORDER <- 1024
A <- matrix(rnorm(ORDER^2), nrow=ORDER)
B <- matrix(rnorm(ORDER^2), nrow=ORDER)
gpuA <- cudaMatrix(A, type="double")
gpuB <- cudaMatrix(B, type="double")
C <- A %*% B
gpuC <- gpuA %*% gpuB
all(C == gpuC)
[1] TRUE
If you are fortunate enough to have a very recent card that you can use the most recent drivers. THis install is much more simple
# Install Boost & OpenCL headers
sudo apt-get install opencl-headers
# Install NVIDIA Drivers and CUDA
sudo add-apt-repository -y ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-346 nvidia-settings
sudo apt-get install cuda
If you have an older card that doesn't support the newest drivers:
sudo apt-get purge cuda* nvidia-*
)sh cuda_6.5.14_linux_64.run
)PATH
to include /usr/local/cuda-6.5/bin
and LD_LIBRARY_PATH
to include /usr/local/cuda-6.5/lib64
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.