Module Bindings.Functions

Parameters

module F : Ctypes.FOREIGN

Signature

module E = Types_generated
val cu_init : (int -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_device_get_count : (int Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_device_get : (Cuda_ffi__Bindings_types.cu_device Ctypes_static.ptr -> int -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_ctx_create : (Bindings_types.cu_context Ctypes_static.ptr -> Unsigned.uint -> Cuda_ffi__Bindings_types.cu_device -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_ctx_get_flags : (Unsigned.uint Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_device_primary_ctx_retain : (Bindings_types.cu_context Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_device -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_device_primary_ctx_release : (Cuda_ffi__Bindings_types.cu_device -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_device_primary_ctx_reset : (Cuda_ffi__Bindings_types.cu_device -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_ctx_get_device : (Cuda_ffi__Bindings_types.cu_device Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_ctx_get_current : (Bindings_types.cu_context Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_ctx_pop_current : (Bindings_types.cu_context Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_ctx_set_current : (Bindings_types.cu_context -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_ctx_push_current : (Bindings_types.cu_context -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_module_load_data_ex : (Bindings_types.cu_module Ctypes_static.ptr -> unit Ctypes_static.ptr -> int -> Cuda_ffi__Bindings_types.cu_jit_option Ctypes_static.ptr -> unit Ctypes_static.ptr Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_module_get_function : (Bindings_types.cu_function Ctypes_static.ptr -> Bindings_types.cu_module -> string -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_mem_alloc : (Unsigned.uint64 Ctypes_static.ptr -> Unsigned.size_t -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_mem_alloc_async : (Unsigned.uint64 Ctypes_static.ptr -> Unsigned.size_t -> Bindings_types.cu_stream -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memcpy_H_to_D : (Unsigned.uint64 -> unit Ctypes_static.ptr -> Unsigned.size_t -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memcpy_H_to_D_async : (Unsigned.uint64 -> unit Ctypes_static.ptr -> Unsigned.size_t -> Bindings_types.cu_stream -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_launch_kernel : (Bindings_types.cu_function -> Unsigned.uint -> Unsigned.uint -> Unsigned.uint -> Unsigned.uint -> Unsigned.uint -> Unsigned.uint -> Unsigned.uint -> Bindings_types.cu_stream -> unit Ctypes_static.ptr Ctypes_static.ptr -> unit Ctypes_static.ptr Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_ctx_synchronize : (unit -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memcpy_D_to_H : (unit Ctypes_static.ptr -> Unsigned.uint64 -> Unsigned.size_t -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memcpy_D_to_H_async : (unit Ctypes_static.ptr -> Unsigned.uint64 -> Unsigned.size_t -> Bindings_types.cu_stream -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memcpy_D_to_D : (Unsigned.uint64 -> Unsigned.uint64 -> Unsigned.size_t -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memcpy_D_to_D_async : (Unsigned.uint64 -> Unsigned.uint64 -> Unsigned.size_t -> Bindings_types.cu_stream -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memcpy_peer : (Unsigned.uint64 -> Bindings_types.cu_context -> Unsigned.uint64 -> Bindings_types.cu_context -> Unsigned.size_t -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memcpy_peer_async : (Unsigned.uint64 -> Bindings_types.cu_context -> Unsigned.uint64 -> Bindings_types.cu_context -> Unsigned.size_t -> Bindings_types.cu_stream -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_ctx_disable_peer_access : (Bindings_types.cu_context -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_ctx_enable_peer_access : (Bindings_types.cu_context -> Unsigned.uint -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_device_can_access_peer : (int Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_device -> Cuda_ffi__Bindings_types.cu_device -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_device_get_p2p_attribute : (int Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_device_p2p_attribute -> Cuda_ffi__Bindings_types.cu_device -> Cuda_ffi__Bindings_types.cu_device -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_mem_free : (Unsigned.uint64 -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_mem_free_async : (Unsigned.uint64 -> Bindings_types.cu_stream -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_module_unload : (Bindings_types.cu_module -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_ctx_destroy : (Bindings_types.cu_context -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memset_d8 : (Unsigned.uint64 -> Unsigned.uchar -> Unsigned.size_t -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memset_d16 : (Unsigned.uint64 -> Unsigned.ushort -> Unsigned.size_t -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memset_d32 : (Unsigned.uint64 -> Unsigned.uint32 -> Unsigned.size_t -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memset_d8_async : (Unsigned.uint64 -> Unsigned.uchar -> Unsigned.size_t -> Bindings_types.cu_stream -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memset_d16_async : (Unsigned.uint64 -> Unsigned.ushort -> Unsigned.size_t -> Bindings_types.cu_stream -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_memset_d32_async : (Unsigned.uint64 -> Unsigned.uint32 -> Unsigned.size_t -> Bindings_types.cu_stream -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_mem_get_info : (Unsigned.size_t Ctypes_static.ptr -> Unsigned.size_t Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_module_get_global : (Unsigned.uint64 Ctypes_static.ptr -> Unsigned.size_t Ctypes_static.ptr -> Bindings_types.cu_module -> string -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_device_get_name : (char Ctypes_static.ptr -> int -> Cuda_ffi__Bindings_types.cu_device -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_device_get_attribute : (int Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_device_attribute -> Cuda_ffi__Bindings_types.cu_device -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_computemode_of_int : int -> Bindings_types.cu_computemode
val cu_ctx_set_limit : (Cuda_ffi__Bindings_types.cu_limit -> Unsigned.size_t -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_ctx_get_limit : (Unsigned.size_t Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_limit -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_stream_attach_mem_async : (Bindings_types.cu_stream -> Unsigned.uint64 -> Unsigned.size_t -> Unsigned.uint -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_stream_create_with_priority : (Bindings_types.cu_stream Ctypes_static.ptr -> Unsigned.uint -> int -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_stream_destroy : (Bindings_types.cu_stream -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_stream_get_ctx : (Bindings_types.cu_stream -> Bindings_types.cu_context Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_stream_get_id : (Bindings_types.cu_stream -> Unsigned.uint64 Ctypes_static.ptr -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_stream_query : (Bindings_types.cu_stream -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_stream_synchronize : (Bindings_types.cu_stream -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_event_create : (Bindings_types.cu_event Ctypes_static.ptr -> Unsigned.uint -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_event_destroy : (Bindings_types.cu_event -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_event_elapsed_time : (float Ctypes_static.ptr -> Bindings_types.cu_event -> Bindings_types.cu_event -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_event_record_with_flags : (Bindings_types.cu_event -> Bindings_types.cu_stream -> Unsigned.uint -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_event_query : (Bindings_types.cu_event -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_event_synchronize : (Bindings_types.cu_event -> Cuda_ffi__Bindings_types.cu_result F.return) F.result
val cu_stream_wait_event : (Bindings_types.cu_stream -> Bindings_types.cu_event -> Unsigned.uint -> Cuda_ffi__Bindings_types.cu_result F.return) F.result