You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sycl/doc/extensions/supported/sycl_ext_intel_device_info.md
+75Lines changed: 75 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ The Feature Test Macro SYCL\_EXT\_INTEL\_DEVICE\_INFO will be defined as one of
18
18
| 3 | HW threads per EU device query is supported |
19
19
| 4 | Free device memory query is supported |
20
20
| 5 | Device ID is supported |
21
+
| 6 | Memory clock rate and bus width queries are supported |
21
22
22
23
23
24
@@ -425,6 +426,80 @@ Then the free device memory can be obtained using the standard get\_info() inte
425
426
auto FreeMemory = dev.get_info<ext::intel::info::device::free_memory>();
426
427
}
427
428
429
+
430
+
# Memory Clock Rate #
431
+
432
+
A new device descriptor is added which provides the maximum clock rate of device's global memory.
433
+
434
+
This new device descriptor is not available for devices in the OpenCL platform, and the matching aspect is false for those devices. The DPC++ default behavior is to expose GPU devices through the Level Zero platform.
435
+
436
+
## Version ##
437
+
438
+
The extension supports this query in version 6 and later.
439
+
440
+
441
+
## Device Information Descriptors ##
442
+
443
+
| Device Descriptors | Return Type | Description |
| ext\:\:intel\:\:info\:\:device\:\:memory\_clock\_rate | uint32\_t| Returns the maximum clock rate of device's global memory in MHz. If device doesn't have memory then returns 0. If there are several memories on the device then the minimum of the clock rate values is returned. |
446
+
447
+
448
+
## Aspects ##
449
+
450
+
A new aspect, ext\_intel\_memory\_clock\_rate, is added.
451
+
452
+
453
+
## Error Condition ##
454
+
455
+
An invalid object runtime error is thrown if the device does not support aspect\:\:ext\_intel\_memory\_clock\_rate.
456
+
457
+
458
+
## Example Usage ##
459
+
460
+
Then the memory clock rate can be obtained using the standard get\_info() interface.
461
+
462
+
if (dev.has(aspect::ext_intel_memory_clock_rate)) {
463
+
auto MemoryClockRate = dev.get_info<ext::intel::info::device::memory_clock_rate>();
464
+
}
465
+
466
+
467
+
# Memory Bus Width #
468
+
469
+
A new device descriptor is added which provides the maximum bus width between device and memory.
470
+
471
+
This new device descriptor is not available for devices in the OpenCL platform, and the matching aspect is false for those devices. The DPC++ default behavior is to expose GPU devices through the Level Zero platform.
472
+
473
+
## Version ##
474
+
475
+
The extension supports this query in version 6 and later.
476
+
477
+
478
+
## Device Information Descriptors ##
479
+
480
+
| Device Descriptors | Return Type | Description |
| ext\:\:intel\:\:info\:\:device\:\:memory\_bus\_width | uint32\_t| Returns the maximum bus width between device and memory in bits. If device doesn't have memory then returns 0. If there are several memories on the device then the minimum of the bus width values is returned. |
483
+
484
+
485
+
## Aspects ##
486
+
487
+
A new aspect, ext\_intel\_memory\_bus\_width, is added.
488
+
489
+
490
+
## Error Condition ##
491
+
492
+
An invalid object runtime error is thrown if the device does not support aspect\:\:ext\_intel\_memory\_bus\_width.
493
+
494
+
495
+
## Example Usage ##
496
+
497
+
Then the memory bus width can be obtained using the standard get\_info() interface.
498
+
499
+
if (dev.has(aspect::ext_intel_memory_bus_width)) {
500
+
auto MemoryBusWidth = dev.get_info<ext::intel::info::device::memory_bus_width>();
501
+
}
502
+
428
503
# Deprecated queries #
429
504
430
505
The table below lists deprecated, that would soon be removed and their replacements:
0 commit comments