singe-cuda-sys 0.1.0-alpha.8

Low-level FFI bindings for CUDA driver, runtime, NVRTC, NVVM, NVTX, and related NVIDIA APIs.
Documentation
/* automatically generated by rust-bindgen 0.72.1 */

use crate::driver::CUresult;
unsafe extern "C" {
    /// Enable profiling.
    ///
    /// Enables profile collection by the active profiling tool for the current context. If profiling is already enabled, then [`cuProfilerStart`] has no effect.
    ///
    /// cuProfilerStart and cuProfilerStop APIs are used to programmatically control the profiling granularity by allowing profiling
    /// to be done only on selective pieces of code.
    ///
    /// Note:
    ///
    /// Note that this function may also return error codes from previous, asynchronous launches.
    ///
    /// **See also:**
    ///
    /// `cuProfilerInitialize`, [`cuProfilerStop`], [cudaProfilerStart](https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__PROFILER.html#group__CUDART__PROFILER_1gf536d75bb382356e10e3b4e89f4a5374).
    pub fn cuProfilerStart() -> CUresult;
}
unsafe extern "C" {
    /// Disable profiling.
    ///
    /// Disables profile collection by the active profiling tool for the current context. If profiling is already disabled, then [`cuProfilerStop`] has no effect.
    ///
    /// cuProfilerStart and cuProfilerStop APIs are used to programmatically control the profiling granularity by allowing profiling
    /// to be done only on selective pieces of code.
    ///
    /// Note:
    ///
    /// Note that this function may also return error codes from previous, asynchronous launches.
    ///
    /// **See also:**
    ///
    /// `cuProfilerInitialize`, [`cuProfilerStart`], [cudaProfilerStop](https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__PROFILER.html#group__CUDART__PROFILER_1g826922d9d1d0090d4a9a6b8b249cebb5).
    pub fn cuProfilerStop() -> CUresult;
}