August 2017
Intermediate to advanced
288 pages
8h 6m
English
Let's get started by loading the packages:
library("gpuR")
options(gpuR.default.type = "float")
# Assigning a matrix to GPU A<-matrix(rnorm(1000), nrow=10) vcl1 = vclMatrix(A)
The output of the preceding command will contain details of the object. An illustration is shown in the following script:
> vcl1 An object of class "fvclMatrix" Slot "address": <pointer: 0x000000001822e180> Slot ".context_index": [1] 1 Slot ".platform_index": [1] 1 Slot ".platform": [1] "Intel(R) OpenCL" Slot ".device_index": [1] 1 Slot ".device": [1] "Intel(R) HD Graphics 530"
Read now
Unlock full access