@@ -36,14 +36,14 @@ A new aspect, ext\_intel\_gpu\_pci\_address, will be added.
36
36
37
37
## Error Condition ##
38
38
39
- The function device \:\: get_info \(\) will return an empty string if the device does not support aspect\:\: ext\_ intel\_ gpu\_ pci\_ address.
39
+ An exception will be thrown if the device does not support aspect\:\: ext\_ intel\_ gpu\_ pci\_ address.
40
40
41
41
42
42
## Example Usage ##
43
43
44
44
The PCI address can be obtained using the standard get\_ info() interface.
45
45
46
- if (dev.has(aspect::ext_intel_gpu_pci_address) {
46
+ if (dev.has(aspect::ext_intel_gpu_pci_address)) {
47
47
auto BDF = dev.get_info<info::device::ext_intel_gpu_pci_address>();
48
48
}
49
49
@@ -69,13 +69,13 @@ A new aspect, ext\_intel\_gpu\_eu\_simd\_width, will be added.
69
69
70
70
## Error Condition ##
71
71
72
- The function device \:\: get_info \(\) will return PI \_ INVALID \_ VALUE if the device does not support aspect\:\: ext\_ intel\_ gpu\_ eu\_ simd\_ width.
72
+ An exception will be thrown if the device does not support aspect\:\: ext\_ intel\_ gpu\_ eu\_ simd\_ width.
73
73
74
74
## Example Usage ##
75
75
76
76
The physical EU SIMD width can be obtained using the standard get\_ info() interface.
77
77
78
- if (dev.has(aspect::ext_intel_gpu_eu_simd_width) {
78
+ if (dev.has(aspect::ext_intel_gpu_eu_simd_width)) {
79
79
auto euSimdWidth = dev.get_info<info::device::ext_intel_gpu_eu_simd_width>();
80
80
}
81
81
@@ -102,12 +102,12 @@ A new aspect, ext\_intel\_gpu\_eu\_count, will be added.
102
102
103
103
## Error Condition ##
104
104
105
- The function device \:\: get_info \(\) will return PI \_ INVALID \_ VALUE if the device does not support aspect\:\: ext\_ intel\_ gpu\_ eu\_ count.
105
+ An exception will be thrown if the device does not support aspect\:\: ext\_ intel\_ gpu\_ eu\_ count.
106
106
107
107
## Example Usage ##
108
108
109
109
Then the number of EUs can be obtained using the standard get\_ info() interface.
110
110
111
- if (dev.has(aspect::ext_intel_gpu_eu_count) {
111
+ if (dev.has(aspect::ext_intel_gpu_eu_count)) {
112
112
auto euCount = dev.get_info<info::device::ext_intel_gpu_eu_count>();
113
113
}
0 commit comments