singe-cuda-sys 0.1.0

Low-level FFI bindings for the CUDA driver and runtime APIs and the CUDA libraries that ship with them, such as NVRTC.
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.
    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.
    pub fn cuProfilerStop() -> CUresult;
}