gatherGPU: gathergpu

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

Copy GPU matrix/vector to R vector

Usage

1
gathergpu(input)

Arguments

input

list consisting of R external GPU pointer and its dimension

Details

This function copys GPU vector/matrix to R vector

The output is always R vector, and GPU matrix will be copied by row-major. For example, an m by n GPU matrix will be converted to a m*n R vector.

Value

R vector

Note

output is R vector and can be used by any R functions

Author(s)

Yuan Li

See Also

gathergpu creategpu

Examples

1
2
3
a <- 1:6
am_gpu <- creategpu(a, 3, 2)
gathergpu(am_gpu) 

yuanli22/RCUDA documentation built on May 4, 2019, 6:35 p.m.