|
1 | 1 | /* automatically generated by rust-bindgen 0.72.1 */ |
2 | 2 |
|
3 | | -#[repr(u32)] |
4 | | -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] |
5 | | -pub enum cudaError { |
6 | | - cudaSuccess = 0, |
7 | | - cudaErrorInvalidValue = 1, |
8 | | - cudaErrorMemoryAllocation = 2, |
9 | | - cudaErrorInitializationError = 3, |
10 | | - cudaErrorCudartUnloading = 4, |
11 | | - cudaErrorProfilerDisabled = 5, |
12 | | - cudaErrorProfilerNotInitialized = 6, |
13 | | - cudaErrorProfilerAlreadyStarted = 7, |
14 | | - cudaErrorProfilerAlreadyStopped = 8, |
15 | | - cudaErrorInvalidConfiguration = 9, |
16 | | - cudaErrorInvalidPitchValue = 12, |
17 | | - cudaErrorInvalidSymbol = 13, |
18 | | - cudaErrorInvalidHostPointer = 16, |
19 | | - cudaErrorInvalidDevicePointer = 17, |
20 | | - cudaErrorInvalidTexture = 18, |
21 | | - cudaErrorInvalidTextureBinding = 19, |
22 | | - cudaErrorInvalidChannelDescriptor = 20, |
23 | | - cudaErrorInvalidMemcpyDirection = 21, |
24 | | - cudaErrorAddressOfConstant = 22, |
25 | | - cudaErrorTextureFetchFailed = 23, |
26 | | - cudaErrorTextureNotBound = 24, |
27 | | - cudaErrorSynchronizationError = 25, |
28 | | - cudaErrorInvalidFilterSetting = 26, |
29 | | - cudaErrorInvalidNormSetting = 27, |
30 | | - cudaErrorMixedDeviceExecution = 28, |
31 | | - cudaErrorNotYetImplemented = 31, |
32 | | - cudaErrorMemoryValueTooLarge = 32, |
33 | | - cudaErrorStubLibrary = 34, |
34 | | - cudaErrorInsufficientDriver = 35, |
35 | | - cudaErrorCallRequiresNewerDriver = 36, |
36 | | - cudaErrorInvalidSurface = 37, |
37 | | - cudaErrorDuplicateVariableName = 43, |
38 | | - cudaErrorDuplicateTextureName = 44, |
39 | | - cudaErrorDuplicateSurfaceName = 45, |
40 | | - cudaErrorDevicesUnavailable = 46, |
41 | | - cudaErrorIncompatibleDriverContext = 49, |
42 | | - cudaErrorMissingConfiguration = 52, |
43 | | - cudaErrorPriorLaunchFailure = 53, |
44 | | - cudaErrorLaunchMaxDepthExceeded = 65, |
45 | | - cudaErrorLaunchFileScopedTex = 66, |
46 | | - cudaErrorLaunchFileScopedSurf = 67, |
47 | | - cudaErrorSyncDepthExceeded = 68, |
48 | | - cudaErrorLaunchPendingCountExceeded = 69, |
49 | | - cudaErrorInvalidDeviceFunction = 98, |
50 | | - cudaErrorNoDevice = 100, |
51 | | - cudaErrorInvalidDevice = 101, |
52 | | - cudaErrorDeviceNotLicensed = 102, |
53 | | - cudaErrorSoftwareValidityNotEstablished = 103, |
54 | | - cudaErrorStartupFailure = 127, |
55 | | - cudaErrorInvalidKernelImage = 200, |
56 | | - cudaErrorDeviceUninitialized = 201, |
57 | | - cudaErrorMapBufferObjectFailed = 205, |
58 | | - cudaErrorUnmapBufferObjectFailed = 206, |
59 | | - cudaErrorArrayIsMapped = 207, |
60 | | - cudaErrorAlreadyMapped = 208, |
61 | | - cudaErrorNoKernelImageForDevice = 209, |
62 | | - cudaErrorAlreadyAcquired = 210, |
63 | | - cudaErrorNotMapped = 211, |
64 | | - cudaErrorNotMappedAsArray = 212, |
65 | | - cudaErrorNotMappedAsPointer = 213, |
66 | | - cudaErrorECCUncorrectable = 214, |
67 | | - cudaErrorUnsupportedLimit = 215, |
68 | | - cudaErrorDeviceAlreadyInUse = 216, |
69 | | - cudaErrorPeerAccessUnsupported = 217, |
70 | | - cudaErrorInvalidPtx = 218, |
71 | | - cudaErrorInvalidGraphicsContext = 219, |
72 | | - cudaErrorNvlinkUncorrectable = 220, |
73 | | - cudaErrorJitCompilerNotFound = 221, |
74 | | - cudaErrorUnsupportedPtxVersion = 222, |
75 | | - cudaErrorJitCompilationDisabled = 223, |
76 | | - cudaErrorUnsupportedExecAffinity = 224, |
77 | | - cudaErrorUnsupportedDevSideSync = 225, |
78 | | - cudaErrorContained = 226, |
79 | | - cudaErrorInvalidSource = 300, |
80 | | - cudaErrorFileNotFound = 301, |
81 | | - cudaErrorSharedObjectSymbolNotFound = 302, |
82 | | - cudaErrorSharedObjectInitFailed = 303, |
83 | | - cudaErrorOperatingSystem = 304, |
84 | | - cudaErrorInvalidResourceHandle = 400, |
85 | | - cudaErrorIllegalState = 401, |
86 | | - cudaErrorLossyQuery = 402, |
87 | | - cudaErrorSymbolNotFound = 500, |
88 | | - cudaErrorNotReady = 600, |
89 | | - cudaErrorIllegalAddress = 700, |
90 | | - cudaErrorLaunchOutOfResources = 701, |
91 | | - cudaErrorLaunchTimeout = 702, |
92 | | - cudaErrorLaunchIncompatibleTexturing = 703, |
93 | | - cudaErrorPeerAccessAlreadyEnabled = 704, |
94 | | - cudaErrorPeerAccessNotEnabled = 705, |
95 | | - cudaErrorSetOnActiveProcess = 708, |
96 | | - cudaErrorContextIsDestroyed = 709, |
97 | | - cudaErrorAssert = 710, |
98 | | - cudaErrorTooManyPeers = 711, |
99 | | - cudaErrorHostMemoryAlreadyRegistered = 712, |
100 | | - cudaErrorHostMemoryNotRegistered = 713, |
101 | | - cudaErrorHardwareStackError = 714, |
102 | | - cudaErrorIllegalInstruction = 715, |
103 | | - cudaErrorMisalignedAddress = 716, |
104 | | - cudaErrorInvalidAddressSpace = 717, |
105 | | - cudaErrorInvalidPc = 718, |
106 | | - cudaErrorLaunchFailure = 719, |
107 | | - cudaErrorCooperativeLaunchTooLarge = 720, |
108 | | - cudaErrorTensorMemoryLeak = 721, |
109 | | - cudaErrorNotPermitted = 800, |
110 | | - cudaErrorNotSupported = 801, |
111 | | - cudaErrorSystemNotReady = 802, |
112 | | - cudaErrorSystemDriverMismatch = 803, |
113 | | - cudaErrorCompatNotSupportedOnDevice = 804, |
114 | | - cudaErrorMpsConnectionFailed = 805, |
115 | | - cudaErrorMpsRpcFailure = 806, |
116 | | - cudaErrorMpsServerNotReady = 807, |
117 | | - cudaErrorMpsMaxClientsReached = 808, |
118 | | - cudaErrorMpsMaxConnectionsReached = 809, |
119 | | - cudaErrorMpsClientTerminated = 810, |
120 | | - cudaErrorCdpNotSupported = 811, |
121 | | - cudaErrorCdpVersionMismatch = 812, |
122 | | - cudaErrorStreamCaptureUnsupported = 900, |
123 | | - cudaErrorStreamCaptureInvalidated = 901, |
124 | | - cudaErrorStreamCaptureMerge = 902, |
125 | | - cudaErrorStreamCaptureUnmatched = 903, |
126 | | - cudaErrorStreamCaptureUnjoined = 904, |
127 | | - cudaErrorStreamCaptureIsolation = 905, |
128 | | - cudaErrorStreamCaptureImplicit = 906, |
129 | | - cudaErrorCapturedEvent = 907, |
130 | | - cudaErrorStreamCaptureWrongThread = 908, |
131 | | - cudaErrorTimeout = 909, |
132 | | - cudaErrorGraphExecUpdateFailure = 910, |
133 | | - cudaErrorExternalDevice = 911, |
134 | | - cudaErrorInvalidClusterSize = 912, |
135 | | - cudaErrorFunctionNotLoaded = 913, |
136 | | - cudaErrorInvalidResourceType = 914, |
137 | | - cudaErrorInvalidResourceConfiguration = 915, |
138 | | - cudaErrorStreamDetached = 917, |
139 | | - cudaErrorUnknown = 999, |
140 | | - cudaErrorApiFailureBase = 10000, |
141 | | -} |
142 | | -pub const cudaMemcpyKind_cudaMemcpyHostToHost: cudaMemcpyKind = 0; |
143 | | -pub const cudaMemcpyKind_cudaMemcpyHostToDevice: cudaMemcpyKind = 1; |
144 | | -pub const cudaMemcpyKind_cudaMemcpyDeviceToHost: cudaMemcpyKind = 2; |
145 | | -pub const cudaMemcpyKind_cudaMemcpyDeviceToDevice: cudaMemcpyKind = 3; |
146 | | -pub const cudaMemcpyKind_cudaMemcpyDefault: cudaMemcpyKind = 4; |
147 | | -pub type cudaMemcpyKind = ::std::os::raw::c_uint; |
148 | | -pub use self::cudaError as cudaError_t; |
149 | | -#[repr(C)] |
150 | | -#[derive(Debug, Copy, Clone)] |
151 | | -pub struct CUstream_st { |
152 | | - _unused: [u8; 0], |
153 | | -} |
154 | | -pub type cudaStream_t = *mut CUstream_st; |
155 | | -pub const cudaDataType_t_CUDA_R_16F: cudaDataType_t = 2; |
156 | | -pub const cudaDataType_t_CUDA_C_16F: cudaDataType_t = 6; |
157 | | -pub const cudaDataType_t_CUDA_R_16BF: cudaDataType_t = 14; |
158 | | -pub const cudaDataType_t_CUDA_C_16BF: cudaDataType_t = 15; |
159 | | -pub const cudaDataType_t_CUDA_R_32F: cudaDataType_t = 0; |
160 | | -pub const cudaDataType_t_CUDA_C_32F: cudaDataType_t = 4; |
161 | | -pub const cudaDataType_t_CUDA_R_64F: cudaDataType_t = 1; |
162 | | -pub const cudaDataType_t_CUDA_C_64F: cudaDataType_t = 5; |
163 | | -pub const cudaDataType_t_CUDA_R_4I: cudaDataType_t = 16; |
164 | | -pub const cudaDataType_t_CUDA_C_4I: cudaDataType_t = 17; |
165 | | -pub const cudaDataType_t_CUDA_R_4U: cudaDataType_t = 18; |
166 | | -pub const cudaDataType_t_CUDA_C_4U: cudaDataType_t = 19; |
167 | | -pub const cudaDataType_t_CUDA_R_8I: cudaDataType_t = 3; |
168 | | -pub const cudaDataType_t_CUDA_C_8I: cudaDataType_t = 7; |
169 | | -pub const cudaDataType_t_CUDA_R_8U: cudaDataType_t = 8; |
170 | | -pub const cudaDataType_t_CUDA_C_8U: cudaDataType_t = 9; |
171 | | -pub const cudaDataType_t_CUDA_R_16I: cudaDataType_t = 20; |
172 | | -pub const cudaDataType_t_CUDA_C_16I: cudaDataType_t = 21; |
173 | | -pub const cudaDataType_t_CUDA_R_16U: cudaDataType_t = 22; |
174 | | -pub const cudaDataType_t_CUDA_C_16U: cudaDataType_t = 23; |
175 | | -pub const cudaDataType_t_CUDA_R_32I: cudaDataType_t = 10; |
176 | | -pub const cudaDataType_t_CUDA_C_32I: cudaDataType_t = 11; |
177 | | -pub const cudaDataType_t_CUDA_R_32U: cudaDataType_t = 12; |
178 | | -pub const cudaDataType_t_CUDA_C_32U: cudaDataType_t = 13; |
179 | | -pub const cudaDataType_t_CUDA_R_64I: cudaDataType_t = 24; |
180 | | -pub const cudaDataType_t_CUDA_C_64I: cudaDataType_t = 25; |
181 | | -pub const cudaDataType_t_CUDA_R_64U: cudaDataType_t = 26; |
182 | | -pub const cudaDataType_t_CUDA_C_64U: cudaDataType_t = 27; |
183 | | -pub const cudaDataType_t_CUDA_R_8F_E4M3: cudaDataType_t = 28; |
184 | | -pub const cudaDataType_t_CUDA_R_8F_UE4M3: cudaDataType_t = 28; |
185 | | -pub const cudaDataType_t_CUDA_R_8F_E5M2: cudaDataType_t = 29; |
186 | | -pub const cudaDataType_t_CUDA_R_8F_UE8M0: cudaDataType_t = 30; |
187 | | -pub const cudaDataType_t_CUDA_R_6F_E2M3: cudaDataType_t = 31; |
188 | | -pub const cudaDataType_t_CUDA_R_6F_E3M2: cudaDataType_t = 32; |
189 | | -pub const cudaDataType_t_CUDA_R_4F_E2M1: cudaDataType_t = 33; |
190 | | -pub type cudaDataType_t = ::std::os::raw::c_uint; |
191 | | -unsafe extern "C" { |
192 | | - pub fn cudaMemcpyAsync( |
193 | | - dst: *mut ::std::os::raw::c_void, |
194 | | - src: *const ::std::os::raw::c_void, |
195 | | - count: usize, |
196 | | - kind: cudaMemcpyKind, |
197 | | - stream: cudaStream_t, |
198 | | - ) -> cudaError_t; |
199 | | -} |
| 3 | +use crate::{cudaDataType_t, cudaStream_t}; |
| 4 | + |
200 | 5 | #[repr(u32)] |
201 | 6 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] |
202 | 7 | pub enum DLDeviceType { |
@@ -779,7 +584,6 @@ unsafe extern "C" { |
779 | 584 | } |
780 | 585 | #[doc = " @defgroup ivf_pq_c_search_params IVF-PQ index search parameters\n @{\n/\n/**\n @brief Supplemental parameters to search IVF-PQ index\n"] |
781 | 586 | #[repr(C)] |
782 | | -#[derive(Debug, Copy, Clone)] |
783 | 587 | pub struct cuvsIvfPqSearchParams { |
784 | 588 | #[doc = " The number of clusters to search."] |
785 | 589 | pub n_probes: u32, |
|
0 commit comments