singe-cuda-sys 0.2.1

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

use crate::driver::CUresult;
singe_loader::functions! { crate::DRIVER;
    /// 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 that this function may also return error codes from previous, asynchronous launches.
    ///
    /// # Return value
    ///
    /// - [`cudaError_enum::CUDA_SUCCESS`](crate::driver::cudaError_enum::CUDA_SUCCESS)
    /// - [`cudaError_enum::CUDA_ERROR_INVALID_CONTEXT`](crate::driver::cudaError_enum::CUDA_ERROR_INVALID_CONTEXT)
    ///
    /// See also: [`cuProfilerInitialize`](https://docs.nvidia.com/cuda/archive/13.4.2/cuda-driver-api/cuda_driver_api/group__CUDA__PROFILER__DEPRECATED.html#group__cuda__profiler__deprecated_1gad5d346ef62db53032948f387650d1a18), [`cuProfilerStop`], `cudaProfilerStart`.
    pub fn cuProfilerStart() -> CUresult;
}
singe_loader::functions! { crate::DRIVER;
    /// 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 that this function may also return error codes from previous, asynchronous launches.
    ///
    /// # Return value
    ///
    /// - [`cudaError_enum::CUDA_SUCCESS`](crate::driver::cudaError_enum::CUDA_SUCCESS)
    /// - [`cudaError_enum::CUDA_ERROR_INVALID_CONTEXT`](crate::driver::cudaError_enum::CUDA_ERROR_INVALID_CONTEXT)
    ///
    /// See also: [`cuProfilerInitialize`](https://docs.nvidia.com/cuda/archive/13.4.2/cuda-driver-api/cuda_driver_api/group__CUDA__PROFILER__DEPRECATED.html#group__cuda__profiler__deprecated_1gad5d346ef62db53032948f387650d1a18), [`cuProfilerStart`], `cudaProfilerStop`.
    pub fn cuProfilerStop() -> CUresult;
}