Documentation
GitHub
Example
Dlang.org
CuArray
grain
cuda
sub-region on CuPtr!T
version
(
grain_cuda
)
struct
CuArray (
T
) {
RefCounted
!(
CuPtr
!
T
)
storage
;
CUdeviceptr
ptr
;
this
(
CuPtr
!
T
storage
)
;
this
(
CuPtr
!
T
storage
,
size_t
offset
)
;
this
(
RefCounted
!(
CuPtr
!
T
)
storage
,
size_t
offset
=
0
)
;
this
(
T
[]
host
)
;
this
(
size_t
n
)
;
length
[@property getter];
}
Constructors
this
this
(
CuPtr
!
T
storage
)
this
this
(
CuPtr
!
T
storage
,
size_t
offset
)
this
this
(
RefCounted
!(
CuPtr
!
T
)
storage
,
size_t
offset
=
0
)
this
this
(
T
[]
host
)
this
this
(
size_t
n
)
create uninitialized T.sizeof * n array in device
Alias This
ptr
Members
Properties
length
length
[@property getter]
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
sub-region on CuPtr!T