Module Sarek_opencl.Opencl_api

Exceptions

exception Opencl_error of Opencl_types.cl_error * string

Deprecated: no longer raised. check below now raises the canonical Opencl_error.Opencl_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 Opencl_api.Opencl_error (code, ctx) still compiles (this library is opam-published).

  • deprecated no longer raised; Opencl_api.check now raises Opencl_error.Opencl_error (Backend_error) - catch that instead
val check : string -> int32 -> unit

Check OpenCL result and raise a canonical Backend_error on failure.

Platform Management

module Platform : sig ... end

Device Management

module Device : sig ... end

Context Management

module Context : sig ... end

Command Queue Management

module CommandQueue : sig ... end

Memory Management

module Memory : sig ... end

Program Management

module Program : sig ... end

Kernel Management

module Kernel : sig ... end

Utility Functions

val is_available : unit -> bool
module String : sig ... end