Rune_jitSourcetype 'a exe_internal = {kernels : 'a kernel_artifact list;graph_meta : (Var.t, Ir.var_metadata) Hashtbl.t;graph_outputs : Var.t list;}val compile_legacy :
backend:
(module Backend_intf.S
with type callable_kernel_native = 'callable_kernel_native) ->
Ir.graph_t ->
('callable_kernel_native Rune_jit__Backend_intf.callable_kernel executable,
string)
resultval compile :
backend:
(module Backend_intf.S
with type callable_kernel_native = 'callable_kernel_native) ->
Ir.graph_t ->
('callable_kernel_native Rune_jit__Backend_intf.callable_kernel executable,
string)
resultval execute :
backend:
(module Backend_intf.S
with type callable_kernel_native = 'callable_kernel_native
and type device_buffer_native = 'device_buffer_native) ->
'callable_kernel_native Rune_jit__Backend_intf.callable_kernel executable ->
inputs:
(Var.t, 'device_buffer_native Rune_jit__Backend_intf.any_device_buffer)
Hashtbl.t ->
outputs:Var.t list ->
((Var.t, 'device_buffer_native Rune_jit__Backend_intf.any_device_buffer)
Hashtbl.t,
string)
resultval allocate_buffer :
backend:
(module Backend_intf.S
with type device_buffer_native = 'device_buffer_native) ->
size_in_bytes:int ->
dtype:'a Dtype.t ->
(('a, 'device_buffer_native) Rune_jit__Backend_intf.device_buffer, string)
resultval copy_to_device :
backend:
(module Backend_intf.S
with type device_buffer_native = 'device_buffer_native) ->
dest_buffer:('a, 'device_buffer_native) Rune_jit__Backend_intf.device_buffer ->
host:('b, 'c, 'd) Bigarray.Array1.t ->
(unit, string) resultval copy_from_device :
backend:
(module Backend_intf.S
with type device_buffer_native = 'device_buffer_native) ->
src_buffer:('a, 'device_buffer_native) Rune_jit__Backend_intf.device_buffer ->
dest:('b, 'c, 'd) Bigarray.Array1.t ->
(unit, string) result