grain ~master (2021-05-15T05:53:16Z)
Dub
Repo
CuArray
grain
cuda
sub-region on CuPtr!T
version(grain_cuda)
struct
CuArray (
T
) {
import
std
.
typecons
:
RefCounted
;
;
const
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);
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)
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]
Variables
ptr
CUdeviceptr
ptr
;
Undocumented in source.
storage
RefCounted
!(
CuPtr
!
T
)
storage
;
Undocumented in source.
Meta
Source
See Implementation
grain
cuda
aliases
CudaElementType
classes
Global
functions
axpy
checkCUDNN
checkCublasErrors
checkCudaErrors
copy
dup
empty
fill_
global
sum
sumNaive
sum_thrust
toHost
zero_
zeros
static variables
context
cublasHandle
cudnnHandle
structs
CuArray
CuModule
CuPtr
Kernel
Launcher
variables
isDeviceMemory
sub-region on CuPtr!T