Backend_error.MakeHelper module for creating backend-specific error interfaces. Each backend can instantiate this functor with their name.
module B : sig ... endval unknown_intrinsic : string -> tval invalid_arg_count : string -> int -> int -> tval unsupported_construct : string -> string -> tval type_error : string -> string -> string -> tval invalid_memory_space : string -> string -> tval unsupported_type : string -> tval no_device_selected : string -> tval device_not_found : int -> int -> tval compilation_failed : string -> string -> tval module_load_failed : int -> string -> tval kernel_launch_failed : string -> string -> tval memory_allocation_failed : int64 -> string -> tval memory_copy_failed : string -> int -> string -> tval context_error : string -> string -> tval synchronization_failed : string -> tval unsupported_source_lang : string -> tval library_not_found : string -> string list -> tval initialization_failed : string -> tval feature_not_supported : string -> tval raise_error : t -> 'aval print_error : t -> unitval to_result : (unit -> 'a) -> ('a, t) Stdlib.resultval to_string : t -> string