@@ -32,30 +32,29 @@ enum class architecture : uint64_t {
32
32
// Important note about keeping architecture IDs below unique:
33
33
// - the architecture ID must be a hex number with 16 digits
34
34
// - the architecture ID must suit the following template:
35
- // 0x AA BBBBBBBBBBBB CC (without spaces), where
36
- // - AA is 2-digit ID of category which must be unique
37
- // - BBBBBBBBBBBB is 12-digit number of architecture itself. It must be
38
- // unique for all architectures inside the category
39
- // - CC is 2-digit number reserved for future unexpected modifications
35
+ // 0x AA BBBB CCCCCCCC DD (without spaces), where
36
+ // - AA is 2-digit ID of the architecture family which must be unique
37
+ // - BBBB is 4-digit number reserved for future modifications
38
+ // to keep uniqueness. It should be always 0000 for now
39
+ // - CCCCCCCC is 8-digit number of architecture itself. It must be
40
+ // unique for all architectures inside the family
41
+ // - DD is 2-digit number reserved for future unexpected modifications
40
42
// to keep uniqueness. It should be always 00 for now
41
43
//
42
44
x86_64 = 0x9900000000000000 ,
43
45
//
44
46
// Intel CPU architectures
45
47
//
46
- // AAAA is 03,
47
- // BBBBBBBBBBBB is the architecture ID from the DEVICE_IP_VERSION extension of
48
- // underlied backend,
49
- // CC is 00
48
+ // AA is 03,
49
+ // CCCCCCCC is the architecture ID from the DEVICE_IP_VERSION extension of
50
+ // underlied backend
50
51
intel_cpu_spr = 0x0300000000000800 ,
51
52
intel_cpu_gnr = 0x0300000000000900 ,
52
53
//
53
54
// Intel GPU architectures
54
55
//
55
56
// AA is 00,
56
- // BBBBBBBBBBBB is GMDID of that architecture (4 zeros + 8-digit GMDID
57
- // itself),
58
- // CC is 00
57
+ // CCCCCCCC is GMDID of that architecture
59
58
intel_gpu_bdw = 0x0000000200000000 ,
60
59
intel_gpu_skl = 0x0000000240000900 ,
61
60
intel_gpu_kbl = 0x0000000240400900 ,
@@ -88,8 +87,7 @@ enum class architecture : uint64_t {
88
87
// NVIDIA architectures
89
88
//
90
89
// AA is 01,
91
- // BBBBBBBBBBBB is the SM version ID of that architecture,
92
- // CC is 00
90
+ // CCCCCCCC is the SM version ID of that architecture
93
91
nvidia_gpu_sm_50 = 0x0100000000005000 ,
94
92
nvidia_gpu_sm_52 = 0x0100000000005200 ,
95
93
nvidia_gpu_sm_53 = 0x0100000000005300 ,
@@ -108,8 +106,7 @@ enum class architecture : uint64_t {
108
106
// AMD architectures
109
107
//
110
108
// AA is 02,
111
- // BBBBBBBBBBBB is the GFX version ID of that architecture,
112
- // CC is 00
109
+ // CCCCCCCC is the GFX version ID of that architecture
113
110
amd_gpu_gfx700 = 0x0200000000070000 ,
114
111
amd_gpu_gfx701 = 0x0200000000070100 ,
115
112
amd_gpu_gfx702 = 0x0200000000070200 ,
0 commit comments