package rune
Automatic differentiation and JIT compilation for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
raven-1.0.0.alpha0.tbz
sha256=a9a8a9787f8250337187bb7b21cb317c41bfd2ecf08bcfe0ab407c7b6660764d
sha512=fe13cf257c487e41efe2967be147d80fa94bac8996d3aab2b8fd16f0bbbd108c15e0e58c025ec9bf294d4a0d220ca2ba00c3b1b42fa2143f758c5f0ee4c15782
doc/rune.jit/Rune_jit/index.html
Module Rune_jit
Source
Source
type 'a exe_internal = {
kernels : 'a kernel_artifact list;
graph_meta : (Var.t, Ir.var_metadata) Hashtbl.t;
graph_outputs : Var.t list;
}
Source
val lower :
kernel_spec:Rune_jit__.Scheduler.kernel_spec_t ->
original_graph_vars_metadata:(Ir.Var.t, Ir.var_metadata) Hashtbl.t ->
(Ir.Lowered.graph_t, 'a) result
Source
val 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)
result
Source
val 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 Backend_intf.any_device_buffer) Hashtbl.t ->
outputs:Var.t list ->
((Var.t, 'device_buffer_native Backend_intf.any_device_buffer) Hashtbl.t,
string)
result
Source
val 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)
result
Source
val 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) result
Source
val 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
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>