Repository navigation
Expand file tree
/
Copy pathresult_cuda13.go
More file actions
220 lines (216 loc) · 15.1 KB
/
Copy pathresult_cuda13.go
File metadata and controls
220 lines (216 loc) · 15.1 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
// Code generated by generator.go; DO NOT EDIT.
//go:build cuda13
// +build cuda13
package gocu
/*
#include <cuda.h>
*/
import "C"
// Constants for Result.
const (
CudaErrorAlreadyAcquired Result = C.CUDA_ERROR_ALREADY_ACQUIRED
CudaErrorAlreadyMapped Result = C.CUDA_ERROR_ALREADY_MAPPED
CudaErrorArrayIsMapped Result = C.CUDA_ERROR_ARRAY_IS_MAPPED
CudaErrorAssert Result = C.CUDA_ERROR_ASSERT
CudaErrorCallRequiresNewerDriver Result = C.CUDA_ERROR_CALL_REQUIRES_NEWER_DRIVER
CudaErrorCapturedEvent Result = C.CUDA_ERROR_CAPTURED_EVENT
CudaErrorCdpNotSupported Result = C.CUDA_ERROR_CDP_NOT_SUPPORTED
CudaErrorCdpVersionMismatch Result = C.CUDA_ERROR_CDP_VERSION_MISMATCH
CudaErrorCompatNotSupportedOnDevice Result = C.CUDA_ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE
CudaErrorContained Result = C.CUDA_ERROR_CONTAINED
CudaErrorContextAlreadyCurrent Result = C.CUDA_ERROR_CONTEXT_ALREADY_CURRENT
CudaErrorContextAlreadyInUse Result = C.CUDA_ERROR_CONTEXT_ALREADY_IN_USE
CudaErrorContextIsDestroyed Result = C.CUDA_ERROR_CONTEXT_IS_DESTROYED
CudaErrorCooperativeLaunchTooLarge Result = C.CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE
CudaErrorDeinitialized Result = C.CUDA_ERROR_DEINITIALIZED
CudaErrorDeviceNotLicensed Result = C.CUDA_ERROR_DEVICE_NOT_LICENSED
CudaErrorDeviceUnavailable Result = C.CUDA_ERROR_DEVICE_UNAVAILABLE
CudaErrorEccUncorrectable Result = C.CUDA_ERROR_ECC_UNCORRECTABLE
CudaErrorExternalDevice Result = C.CUDA_ERROR_EXTERNAL_DEVICE
CudaErrorFileNotFound Result = C.CUDA_ERROR_FILE_NOT_FOUND
CudaErrorFunctionNotLoaded Result = C.CUDA_ERROR_FUNCTION_NOT_LOADED
CudaErrorGraphExecUpdateFailure Result = C.CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE
CudaErrorHardwareStackError Result = C.CUDA_ERROR_HARDWARE_STACK_ERROR
CudaErrorHostMemoryAlreadyRegistered Result = C.CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED
CudaErrorHostMemoryNotRegistered Result = C.CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED
CudaErrorIllegalAddress Result = C.CUDA_ERROR_ILLEGAL_ADDRESS
CudaErrorIllegalInstruction Result = C.CUDA_ERROR_ILLEGAL_INSTRUCTION
CudaErrorIllegalState Result = C.CUDA_ERROR_ILLEGAL_STATE
CudaErrorInvalidAddressSpace Result = C.CUDA_ERROR_INVALID_ADDRESS_SPACE
CudaErrorInvalidClusterSize Result = C.CUDA_ERROR_INVALID_CLUSTER_SIZE
CudaErrorInvalidContext Result = C.CUDA_ERROR_INVALID_CONTEXT
CudaErrorInvalidDevice Result = C.CUDA_ERROR_INVALID_DEVICE
CudaErrorInvalidGraphicsContext Result = C.CUDA_ERROR_INVALID_GRAPHICS_CONTEXT
CudaErrorInvalidHandle Result = C.CUDA_ERROR_INVALID_HANDLE
CudaErrorInvalidImage Result = C.CUDA_ERROR_INVALID_IMAGE
CudaErrorInvalidPc Result = C.CUDA_ERROR_INVALID_PC
CudaErrorInvalidPtx Result = C.CUDA_ERROR_INVALID_PTX
CudaErrorInvalidResourceConfiguration Result = C.CUDA_ERROR_INVALID_RESOURCE_CONFIGURATION
CudaErrorInvalidResourceType Result = C.CUDA_ERROR_INVALID_RESOURCE_TYPE
CudaErrorInvalidSource Result = C.CUDA_ERROR_INVALID_SOURCE
CudaErrorInvalidValue Result = C.CUDA_ERROR_INVALID_VALUE
CudaErrorJitCompilationDisabled Result = C.CUDA_ERROR_JIT_COMPILATION_DISABLED
CudaErrorJitCompilerNotFound Result = C.CUDA_ERROR_JIT_COMPILER_NOT_FOUND
CudaErrorKeyRotation Result = C.CUDA_ERROR_KEY_ROTATION
CudaErrorLaunchFailed Result = C.CUDA_ERROR_LAUNCH_FAILED
CudaErrorLaunchIncompatibleTexturing Result = C.CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING
CudaErrorLaunchOutOfResources Result = C.CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES
CudaErrorLaunchTimeout Result = C.CUDA_ERROR_LAUNCH_TIMEOUT
CudaErrorLossyQuery Result = C.CUDA_ERROR_LOSSY_QUERY
CudaErrorMapFailed Result = C.CUDA_ERROR_MAP_FAILED
CudaErrorMisalignedAddress Result = C.CUDA_ERROR_MISALIGNED_ADDRESS
CudaErrorMpsClientTerminated Result = C.CUDA_ERROR_MPS_CLIENT_TERMINATED
CudaErrorMpsConnectionFailed Result = C.CUDA_ERROR_MPS_CONNECTION_FAILED
CudaErrorMpsMaxClientsReached Result = C.CUDA_ERROR_MPS_MAX_CLIENTS_REACHED
CudaErrorMpsMaxConnectionsReached Result = C.CUDA_ERROR_MPS_MAX_CONNECTIONS_REACHED
CudaErrorMpsRpcFailure Result = C.CUDA_ERROR_MPS_RPC_FAILURE
CudaErrorMpsServerNotReady Result = C.CUDA_ERROR_MPS_SERVER_NOT_READY
CudaErrorNotFound Result = C.CUDA_ERROR_NOT_FOUND
CudaErrorNotInitialized Result = C.CUDA_ERROR_NOT_INITIALIZED
CudaErrorNotMapped Result = C.CUDA_ERROR_NOT_MAPPED
CudaErrorNotMappedAsArray Result = C.CUDA_ERROR_NOT_MAPPED_AS_ARRAY
CudaErrorNotMappedAsPointer Result = C.CUDA_ERROR_NOT_MAPPED_AS_POINTER
CudaErrorNotPermitted Result = C.CUDA_ERROR_NOT_PERMITTED
CudaErrorNotReady Result = C.CUDA_ERROR_NOT_READY
CudaErrorNotSupported Result = C.CUDA_ERROR_NOT_SUPPORTED
CudaErrorNoBinaryForGpu Result = C.CUDA_ERROR_NO_BINARY_FOR_GPU
CudaErrorNoDevice Result = C.CUDA_ERROR_NO_DEVICE
CudaErrorNvlinkUncorrectable Result = C.CUDA_ERROR_NVLINK_UNCORRECTABLE
CudaErrorOperatingSystem Result = C.CUDA_ERROR_OPERATING_SYSTEM
CudaErrorOutOfMemory Result = C.CUDA_ERROR_OUT_OF_MEMORY
CudaErrorPeerAccessAlreadyEnabled Result = C.CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED
CudaErrorPeerAccessNotEnabled Result = C.CUDA_ERROR_PEER_ACCESS_NOT_ENABLED
CudaErrorPeerAccessUnsupported Result = C.CUDA_ERROR_PEER_ACCESS_UNSUPPORTED
CudaErrorPrimaryContextActive Result = C.CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE
CudaErrorProfilerAlreadyStarted Result = C.CUDA_ERROR_PROFILER_ALREADY_STARTED
CudaErrorProfilerAlreadyStopped Result = C.CUDA_ERROR_PROFILER_ALREADY_STOPPED
CudaErrorProfilerDisabled Result = C.CUDA_ERROR_PROFILER_DISABLED
CudaErrorProfilerNotInitialized Result = C.CUDA_ERROR_PROFILER_NOT_INITIALIZED
CudaErrorSharedObjectInitFailed Result = C.CUDA_ERROR_SHARED_OBJECT_INIT_FAILED
CudaErrorSharedObjectSymbolNotFound Result = C.CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND
CudaErrorStreamCaptureImplicit Result = C.CUDA_ERROR_STREAM_CAPTURE_IMPLICIT
CudaErrorStreamCaptureInvalidated Result = C.CUDA_ERROR_STREAM_CAPTURE_INVALIDATED
CudaErrorStreamCaptureIsolation Result = C.CUDA_ERROR_STREAM_CAPTURE_ISOLATION
CudaErrorStreamCaptureMerge Result = C.CUDA_ERROR_STREAM_CAPTURE_MERGE
CudaErrorStreamCaptureUnjoined Result = C.CUDA_ERROR_STREAM_CAPTURE_UNJOINED
CudaErrorStreamCaptureUnmatched Result = C.CUDA_ERROR_STREAM_CAPTURE_UNMATCHED
CudaErrorStreamCaptureUnsupported Result = C.CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED
CudaErrorStreamCaptureWrongThread Result = C.CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD
CudaErrorStubLibrary Result = C.CUDA_ERROR_STUB_LIBRARY
CudaErrorSystemDriverMismatch Result = C.CUDA_ERROR_SYSTEM_DRIVER_MISMATCH
CudaErrorSystemNotReady Result = C.CUDA_ERROR_SYSTEM_NOT_READY
CudaErrorTensorMemoryLeak Result = C.CUDA_ERROR_TENSOR_MEMORY_LEAK
CudaErrorTimeout Result = C.CUDA_ERROR_TIMEOUT
CudaErrorTooManyPeers Result = C.CUDA_ERROR_TOO_MANY_PEERS
CudaErrorUnknown Result = C.CUDA_ERROR_UNKNOWN
CudaErrorUnmapFailed Result = C.CUDA_ERROR_UNMAP_FAILED
CudaErrorUnsupportedDevsideSync Result = C.CUDA_ERROR_UNSUPPORTED_DEVSIDE_SYNC
CudaErrorUnsupportedExecAffinity Result = C.CUDA_ERROR_UNSUPPORTED_EXEC_AFFINITY
CudaErrorUnsupportedLimit Result = C.CUDA_ERROR_UNSUPPORTED_LIMIT
CudaErrorUnsupportedPtxVersion Result = C.CUDA_ERROR_UNSUPPORTED_PTX_VERSION
CudaSuccess Result = C.CUDA_SUCCESS
)
// ResultMessages maps Result values to their string representations.
var ResultMessages = map[Result]string{
CudaErrorAlreadyAcquired: "CudaErrorAlreadyAcquired",
CudaErrorAlreadyMapped: "CudaErrorAlreadyMapped",
CudaErrorArrayIsMapped: "CudaErrorArrayIsMapped",
CudaErrorAssert: "CudaErrorAssert",
CudaErrorCallRequiresNewerDriver: "CudaErrorCallRequiresNewerDriver",
CudaErrorCapturedEvent: "CudaErrorCapturedEvent",
CudaErrorCdpNotSupported: "CudaErrorCdpNotSupported",
CudaErrorCdpVersionMismatch: "CudaErrorCdpVersionMismatch",
CudaErrorCompatNotSupportedOnDevice: "CudaErrorCompatNotSupportedOnDevice",
CudaErrorContained: "CudaErrorContained",
CudaErrorContextAlreadyCurrent: "CudaErrorContextAlreadyCurrent",
CudaErrorContextAlreadyInUse: "CudaErrorContextAlreadyInUse",
CudaErrorContextIsDestroyed: "CudaErrorContextIsDestroyed",
CudaErrorCooperativeLaunchTooLarge: "CudaErrorCooperativeLaunchTooLarge",
CudaErrorDeinitialized: "CudaErrorDeinitialized",
CudaErrorDeviceNotLicensed: "CudaErrorDeviceNotLicensed",
CudaErrorDeviceUnavailable: "CudaErrorDeviceUnavailable",
CudaErrorEccUncorrectable: "CudaErrorEccUncorrectable",
CudaErrorExternalDevice: "CudaErrorExternalDevice",
CudaErrorFileNotFound: "CudaErrorFileNotFound",
CudaErrorFunctionNotLoaded: "CudaErrorFunctionNotLoaded",
CudaErrorGraphExecUpdateFailure: "CudaErrorGraphExecUpdateFailure",
CudaErrorHardwareStackError: "CudaErrorHardwareStackError",
CudaErrorHostMemoryAlreadyRegistered: "CudaErrorHostMemoryAlreadyRegistered",
CudaErrorHostMemoryNotRegistered: "CudaErrorHostMemoryNotRegistered",
CudaErrorIllegalAddress: "CudaErrorIllegalAddress",
CudaErrorIllegalInstruction: "CudaErrorIllegalInstruction",
CudaErrorIllegalState: "CudaErrorIllegalState",
CudaErrorInvalidAddressSpace: "CudaErrorInvalidAddressSpace",
CudaErrorInvalidClusterSize: "CudaErrorInvalidClusterSize",
CudaErrorInvalidContext: "CudaErrorInvalidContext",
CudaErrorInvalidDevice: "CudaErrorInvalidDevice",
CudaErrorInvalidGraphicsContext: "CudaErrorInvalidGraphicsContext",
CudaErrorInvalidHandle: "CudaErrorInvalidHandle",
CudaErrorInvalidImage: "CudaErrorInvalidImage",
CudaErrorInvalidPc: "CudaErrorInvalidPc",
CudaErrorInvalidPtx: "CudaErrorInvalidPtx",
CudaErrorInvalidResourceConfiguration: "CudaErrorInvalidResourceConfiguration",
CudaErrorInvalidResourceType: "CudaErrorInvalidResourceType",
CudaErrorInvalidSource: "CudaErrorInvalidSource",
CudaErrorInvalidValue: "CudaErrorInvalidValue",
CudaErrorJitCompilationDisabled: "CudaErrorJitCompilationDisabled",
CudaErrorJitCompilerNotFound: "CudaErrorJitCompilerNotFound",
CudaErrorKeyRotation: "CudaErrorKeyRotation",
CudaErrorLaunchFailed: "CudaErrorLaunchFailed",
CudaErrorLaunchIncompatibleTexturing: "CudaErrorLaunchIncompatibleTexturing",
CudaErrorLaunchOutOfResources: "CudaErrorLaunchOutOfResources",
CudaErrorLaunchTimeout: "CudaErrorLaunchTimeout",
CudaErrorLossyQuery: "CudaErrorLossyQuery",
CudaErrorMapFailed: "CudaErrorMapFailed",
CudaErrorMisalignedAddress: "CudaErrorMisalignedAddress",
CudaErrorMpsClientTerminated: "CudaErrorMpsClientTerminated",
CudaErrorMpsConnectionFailed: "CudaErrorMpsConnectionFailed",
CudaErrorMpsMaxClientsReached: "CudaErrorMpsMaxClientsReached",
CudaErrorMpsMaxConnectionsReached: "CudaErrorMpsMaxConnectionsReached",
CudaErrorMpsRpcFailure: "CudaErrorMpsRpcFailure",
CudaErrorMpsServerNotReady: "CudaErrorMpsServerNotReady",
CudaErrorNotFound: "CudaErrorNotFound",
CudaErrorNotInitialized: "CudaErrorNotInitialized",
CudaErrorNotMapped: "CudaErrorNotMapped",
CudaErrorNotMappedAsArray: "CudaErrorNotMappedAsArray",
CudaErrorNotMappedAsPointer: "CudaErrorNotMappedAsPointer",
CudaErrorNotPermitted: "CudaErrorNotPermitted",
CudaErrorNotReady: "CudaErrorNotReady",
CudaErrorNotSupported: "CudaErrorNotSupported",
CudaErrorNoBinaryForGpu: "CudaErrorNoBinaryForGpu",
CudaErrorNoDevice: "CudaErrorNoDevice",
CudaErrorNvlinkUncorrectable: "CudaErrorNvlinkUncorrectable",
CudaErrorOperatingSystem: "CudaErrorOperatingSystem",
CudaErrorOutOfMemory: "CudaErrorOutOfMemory",
CudaErrorPeerAccessAlreadyEnabled: "CudaErrorPeerAccessAlreadyEnabled",
CudaErrorPeerAccessNotEnabled: "CudaErrorPeerAccessNotEnabled",
CudaErrorPeerAccessUnsupported: "CudaErrorPeerAccessUnsupported",
CudaErrorPrimaryContextActive: "CudaErrorPrimaryContextActive",
CudaErrorProfilerAlreadyStarted: "CudaErrorProfilerAlreadyStarted",
CudaErrorProfilerAlreadyStopped: "CudaErrorProfilerAlreadyStopped",
CudaErrorProfilerDisabled: "CudaErrorProfilerDisabled",
CudaErrorProfilerNotInitialized: "CudaErrorProfilerNotInitialized",
CudaErrorSharedObjectInitFailed: "CudaErrorSharedObjectInitFailed",
CudaErrorSharedObjectSymbolNotFound: "CudaErrorSharedObjectSymbolNotFound",
CudaErrorStreamCaptureImplicit: "CudaErrorStreamCaptureImplicit",
CudaErrorStreamCaptureInvalidated: "CudaErrorStreamCaptureInvalidated",
CudaErrorStreamCaptureIsolation: "CudaErrorStreamCaptureIsolation",
CudaErrorStreamCaptureMerge: "CudaErrorStreamCaptureMerge",
CudaErrorStreamCaptureUnjoined: "CudaErrorStreamCaptureUnjoined",
CudaErrorStreamCaptureUnmatched: "CudaErrorStreamCaptureUnmatched",
CudaErrorStreamCaptureUnsupported: "CudaErrorStreamCaptureUnsupported",
CudaErrorStreamCaptureWrongThread: "CudaErrorStreamCaptureWrongThread",
CudaErrorStubLibrary: "CudaErrorStubLibrary",
CudaErrorSystemDriverMismatch: "CudaErrorSystemDriverMismatch",
CudaErrorSystemNotReady: "CudaErrorSystemNotReady",
CudaErrorTensorMemoryLeak: "CudaErrorTensorMemoryLeak",
CudaErrorTimeout: "CudaErrorTimeout",
CudaErrorTooManyPeers: "CudaErrorTooManyPeers",
CudaErrorUnknown: "CudaErrorUnknown",
CudaErrorUnmapFailed: "CudaErrorUnmapFailed",
CudaErrorUnsupportedDevsideSync: "CudaErrorUnsupportedDevsideSync",
CudaErrorUnsupportedExecAffinity: "CudaErrorUnsupportedExecAffinity",
CudaErrorUnsupportedLimit: "CudaErrorUnsupportedLimit",
CudaErrorUnsupportedPtxVersion: "CudaErrorUnsupportedPtxVersion",
CudaSuccess: "CudaSuccess",
}