Module Sarek_metal.Metal_api

val memcpy : dst:unit Ctypes_static.ptr -> src:unit Ctypes_static.ptr -> size:int -> unit

memcpy from libc for memory transfers

Exceptions

exception Metal_error of string

Deprecated: no longer raised. check below now raises the canonical Metal_error.Metal_error (a Backend_error alias) via the shared Sarek_backend_error.Backend_error.Make.check funnel. Kept only so out-of-tree code matching on Metal_api.Metal_error msg still compiles (this library is opam-published).

  • deprecated no longer raised; Metal_api.check now raises Metal_error.Metal_error (Backend_error) - catch that instead
val check : string -> Metal_types.mtl_error -> unit

Check Metal result and raise a canonical Backend_error on failure.

Device Management

module Device : sig ... end

Command Queue Management

module CommandQueue : sig ... end

Memory Management

module Memory : sig ... end

Library and Function Management

module Library : sig ... end

Compute Pipeline Management

module ComputePipeline : sig ... end

Kernel Execution

module Kernel : sig ... end

Synchronization

val synchronize : 'a -> unit

Profiling

module Profiling : sig ... end