Multicore.Backendval config : Ir.Backend_intf.configinclude Ir.Backend_impl.No_device_buffer_and_copyinginclude Ir.Backend_intf.Alloc_buffer with type stream := Base.unitinclude Ir.Backend_intf.Bufferval sexp_of_buffer_ptr : buffer_ptr -> Sexplib0.Sexp.tinclude sig ... endtype nonrec buffer = buffer_ptr Ir.Backend_intf.bufferval sexp_of_buffer : buffer -> Sexplib0.Sexp.ttype nonrec ctx_arrays = buffer_ptr Ir.Backend_intf.ctx_arraysval sexp_of_ctx_arrays : ctx_arrays -> Sexplib0.Sexp.tval alloc_array :
Ir.Ops.prec ->
dims:Base.int Base.array ->
Base.unit ->
buffer_ptrval alloc_zeros :
Ir.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 : Ir.Ndarray.t -> dst:buffer_ptr -> Base.unitval buffer_to_host : Ir.Ndarray.t -> src:buffer_ptr -> Base.unit