Documentation
GitHub
Example
Dlang.org
toHost
grain
cuda
copy device memory to host (maybe reallocate in host)
ref
toHost
(
ref
M
m
,
scope
ref
T
[]
host
)
version
(
grain_cuda
)
ref
toHost
(
M
T
)
(
ref
M
m
,
scope
ref
T
[]
host
)
if
(
isDeviceMemory
!
M
)
auto
toHost
(
ref
M
m
,
T
*
host
)
auto
toHost
(
ref
M
m
)
Meta
Source
See Implementation
grain
cuda
aliases
CudaElementType
classes
Global
functions
axpy
checkCUDNN
checkCublasErrors
checkCudaErrors
copy
dup
empty
fill_
global
sum
toHost
zero_
zeros
structs
CuArray
CuModule
CuPtr
Kernel
Launcher
variables
isDeviceMemory
copy device memory to host (maybe reallocate in host)