Cuda_api.MemoryAllocate buffer for custom types with explicit element size in bytes
val free : 'a buffer -> unitval host_to_device :
src:('a, 'b, 'c) Stdlib.Bigarray.Array1.t ->
dst:'d buffer ->
unitval device_to_host :
src:'a buffer ->
dst:('b, 'c, 'd) Stdlib.Bigarray.Array1.t ->
unitval host_ptr_to_device :
src_ptr:unit Ctypes_static.ptr ->
byte_size:int ->
dst:'a buffer ->
unitTransfer from raw pointer to device buffer (for custom types)
val device_to_host_ptr :
src:'a buffer ->
dst_ptr:unit Ctypes_static.ptr ->
byte_size:int ->
unitTransfer from device buffer to raw pointer (for custom types)
val memset : 'a buffer -> int -> unit