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
|
#[repr(C)]
#[allow(non_camel_case_types)]
pub enum Result {
SUCCESS = 0,
ERROR_INVALID_VALUE = 1,
ERROR_OUT_OF_MEMORY = 2,
ERROR_NOT_INITIALIZED = 3,
ERROR_DEINITIALIZED = 4,
ERROR_PROFILER_DISABLED = 5,
ERROR_PROFILER_NOT_INITIALIZED = 6,
ERROR_PROFILER_ALREADY_STARTED = 7,
ERROR_PROFILER_ALREADY_STOPPED = 8,
ERROR_NO_DEVICE = 100,
ERROR_INVALID_DEVICE = 101,
ERROR_INVALID_IMAGE = 200,
ERROR_INVALID_CONTEXT = 201,
ERROR_CONTEXT_ALREADY_CURRENT = 202,
ERROR_MAP_FAILED = 205,
ERROR_UNMAP_FAILED = 206,
ERROR_ARRAY_IS_MAPPED = 207,
ERROR_ALREADY_MAPPED = 208,
ERROR_NO_BINARY_FOR_GPU = 209,
ERROR_ALREADY_ACQUIRED = 210,
ERROR_NOT_MAPPED = 211,
ERROR_NOT_MAPPED_AS_ARRAY = 212,
ERROR_NOT_MAPPED_AS_POINTER = 213,
ERROR_ECC_UNCORRECTABLE = 214,
ERROR_UNSUPPORTED_LIMIT = 215,
ERROR_CONTEXT_ALREADY_IN_USE = 216,
ERROR_PEER_ACCESS_UNSUPPORTED = 217,
ERROR_INVALID_PTX = 218,
ERROR_INVALID_GRAPHICS_CONTEXT = 219,
ERROR_NVLINK_UNCORRECTABLE = 220,
ERROR_JIT_COMPILER_NOT_FOUND = 221,
ERROR_INVALID_SOURCE = 300,
ERROR_FILE_NOT_FOUND = 301,
ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND = 302,
ERROR_SHARED_OBJECT_INIT_FAILED = 303,
ERROR_OPERATING_SYSTEM = 304,
ERROR_INVALID_HANDLE = 400,
ERROR_ILLEGAL_STATE = 401,
ERROR_NOT_FOUND = 500,
ERROR_NOT_READY = 600,
ERROR_ILLEGAL_ADDRESS = 700,
ERROR_LAUNCH_OUT_OF_RESOURCES = 701,
ERROR_LAUNCH_TIMEOUT = 702,
ERROR_LAUNCH_INCOMPATIBLE_TEXTURING = 703,
ERROR_PEER_ACCESS_ALREADY_ENABLED = 704,
ERROR_PEER_ACCESS_NOT_ENABLED = 705,
ERROR_PRIMARY_CONTEXT_ACTIVE = 708,
ERROR_CONTEXT_IS_DESTROYED = 709,
ERROR_ASSERT = 710,
ERROR_TOO_MANY_PEERS = 711,
ERROR_HOST_MEMORY_ALREADY_REGISTERED = 712,
ERROR_HOST_MEMORY_NOT_REGISTERED = 713,
ERROR_HARDWARE_STACK_ERROR = 714,
ERROR_ILLEGAL_INSTRUCTION = 715,
ERROR_MISALIGNED_ADDRESS = 716,
ERROR_INVALID_ADDRESS_SPACE = 717,
ERROR_INVALID_PC = 718,
ERROR_LAUNCH_FAILED = 719,
ERROR_COOPERATIVE_LAUNCH_TOO_LARGE = 720,
ERROR_NOT_PERMITTED = 800,
ERROR_NOT_SUPPORTED = 801,
ERROR_SYSTEM_NOT_READY = 802,
ERROR_SYSTEM_DRIVER_MISMATCH = 803,
ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE = 804,
ERROR_STREAM_CAPTURE_UNSUPPORTED = 900,
ERROR_STREAM_CAPTURE_INVALIDATED = 901,
ERROR_STREAM_CAPTURE_MERGE = 902,
ERROR_STREAM_CAPTURE_UNMATCHED = 903,
ERROR_STREAM_CAPTURE_UNJOINED = 904,
ERROR_STREAM_CAPTURE_ISOLATION = 905,
ERROR_STREAM_CAPTURE_IMPLICIT = 906,
ERROR_CAPTURED_EVENT = 907,
ERROR_STREAM_CAPTURE_WRONG_THREAD = 908,
ERROR_TIMEOUT = 909,
ERROR_GRAPH_EXEC_UPDATE_FAILURE = 910,
ERROR_UNKNOWN = 999,
}
#[repr(C)]
pub struct Uuid {
x: [std::os::raw::c_char; 16]
}
|