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
This is similar to the existing
`DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS` device info, only
it applies to programs rather than kernels. All of the adapters should
be updated to report it correctly, and tests have been added.
Copy file name to clipboardExpand all lines: scripts/core/device.yml
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -443,6 +443,8 @@ etors:
443
443
desc: "[$x_bool_t] return true if the device supports the `EnqueueDeviceGlobalVariableWrite` and `EnqueueDeviceGlobalVariableRead` entry points."
444
444
- name: USM_POOL_SUPPORT
445
445
desc: "[$x_bool_t] return true if the device supports USM pooling. Pertains to the `USMPool` entry points and usage of the `pool` parameter of the USM alloc entry points."
446
+
- name: PROGRAM_SET_SPECIALIZATION_CONSTANTS
447
+
desc: "[$x_bool_t] support the $xProgramSetSpecializationConstants entry point"
Copy file name to clipboardExpand all lines: scripts/core/program.yml
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -528,6 +528,7 @@ desc: "Set an array of specialization constants on a Program."
528
528
class: $xProgram
529
529
name: SetSpecializationConstants
530
530
details:
531
+
- "This entry point is optional, the application should query for support with device query $X_DEVICE_INFO_PROGRAM_SET_SPECIALIZATION_CONSTANTS passed to $xDeviceGetInfo."
531
532
- "The application may call this function from simultaneous threads for the same device."
532
533
- "The implementation of this function should be thread-safe."
533
534
- "`hProgram` must have been created with the $xProgramCreateWithIL entry point."
@@ -546,6 +547,8 @@ params:
546
547
returns:
547
548
- $X_RESULT_ERROR_INVALID_SIZE:
548
549
- "`count == 0`"
550
+
- $X_RESULT_ERROR_UNSUPPORTED_FEATURE:
551
+
- "If $X_DEVICE_INFO_PROGRAM_SET_SPECIALIZATION_CONSTANTS query is false"
549
552
- $X_RESULT_ERROR_INVALID_VALUE:
550
553
- "A pSpecConstant entry contains a size that does not match that of the specialization constant in the module."
551
554
- "A pSpecConstant entry contains a nullptr pValue."
0 commit comments