Backend_impl.No_device_buffer_and_copyinginclude Backend_intf.Alloc_buffer
with type stream := Base.unit
with type buffer_ptr = Base.unit Ctypes.ptrinclude Backend_intf.Buffer with type buffer_ptr = Base.unit Ctypes.ptrval sexp_of_buffer_ptr : buffer_ptr -> Sexplib0.Sexp.tinclude sig ... endtype nonrec buffer = buffer_ptr Backend_intf.bufferval sexp_of_buffer : buffer -> Sexplib0.Sexp.ttype nonrec ctx_arrays = buffer_ptr Backend_intf.ctx_arraysval sexp_of_ctx_arrays : ctx_arrays -> Sexplib0.Sexp.tval alloc_array :
Ops.prec ->
dims:Base.int Base.array ->
Base.unit ->
buffer_ptrval alloc_zeros :
Ops.prec ->
dims:Base.int Base.array ->
Base.unit ->
buffer_ptrval free_buffer : (Base.unit -> buffer_ptr -> Base.unit) Base.optionval use_host_memory :
(size_in_bytes:Base.int -> Base.unit Ctypes.ptr -> buffer_ptr) Base.optionReturns (an upper bound of) the memory used for arrays, in bytes.
val buffer_to_buffer :
dst:buffer_ptr ->
src:buffer_ptr ->
size_in_bytes:Base.int ->
Base.unitval host_to_buffer : Ndarray.t -> dst:buffer_ptr -> Base.unitval buffer_to_host : Ndarray.t -> src:buffer_ptr -> Base.unit