1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* 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;
}