uncomplicate.clojurecuda.protocols
Contextual
protocol
An object that has some dependency on a CUcontext.
members
cu-context
(cu-context this)Context that is related to this object.
DeviceMem
protocol
members
cu-ptr
(cu-ptr this)CUDA CUdeviceptr to this object.
HostMem
protocol
members
host-buffer
(host-buffer this)The actual ByteBuffer on the host
host-ptr
(host-ptr this)Host Pointer to this object.
JITOption
protocol
members
put-jit-option
(put-jit-option value option options)Mem
protocol
An object that represents memory that participates in CUDA operations. It can be on the device, or on the host. Built-in implementations: cuda pointers, Java primitive arrays and ByteBuffers
members
memcpy-host*
(memcpy-host* this host size)(memcpy-host* this host size hstream)ptr
(ptr this)Pointer to this object.
size
(size this)Memory size of this cuda or host object in bytes.
ModuleLoad
protocol
members
link-add
(link-add data link-state type options)module-load
(module-load data m)WithOffset
protocol
members
with-offset
(with-offset this ofst)