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;
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;
}