Name Strings
SPV_INTEL_kernel_attributes
Contact
To report problems with this extension, please open a new issue at:
Contributors
-
Jessica Davies, Intel
-
Joseph Garvey, Intel
-
Ajaykumar Kannan, Intel
-
Michael Kinsner, Intel
-
Ryan Murray, Intel
-
Abhishek Tiwari, Intel
Notice
Copyright (c) 2019-2022 Intel Corporation. All rights reserved.
Status
Final Draft
Version
Last Modified Date |
2022-12-05 |
Revision |
4 |
Dependencies
This extension is written against the SPIR-V Specification, Version 1.6 Revision 2.
This extension requires SPIR-V 1.0.
Overview
This extension adds a variety of new execution modes, both general and target-specific. The target-specific execution modes are guarded by separate capabilities.
Extension Name
To use this extension within a SPIR-V module, the following OpExtension must be present in the module:
OpExtension "SPV_INTEL_kernel_attributes"
New Capabilities
This extension introduces new capabilities:
KernelAttributesINTEL FPGAKernelAttributesINTEL FPGAKernelAttributesv2INTEL
New Execution Modes
MaxWorkgroupSizeINTEL MaxWorkDimINTEL NoGlobalOffsetINTEL NumSIMDWorkitemsINTEL SchedulerTargetFmaxMhzINTEL StreamingInterfaceINTEL RegisterMapInterfaceINTEL
Token Number Assignments
KernelAttributesINTEL |
5892 |
MaxWorkgroupSizeINTEL |
5893 |
MaxWorkDimINTEL |
5894 |
NoGlobalOffsetINTEL |
5895 |
NumSIMDWorkitemsINTEL |
5896 |
FPGAKernelAttributesINTEL |
5897 |
FPGAKernelAttributesv2INTEL |
6161 |
SchedulerTargetFmaxMhzINTEL |
5903 |
StreamingInterfaceINTEL |
6154 |
RegisterMapInterfaceINTEL |
6160 |
Modifications to the SPIR-V Specification, Version 1.6
Execution Mode
Modify Section 3.6, Execution Mode, adding these rows to the Execution Mode table:
Execution Mode | Extra Operands | Enabling Capabilities | |||
---|---|---|---|---|---|
5893 |
MaxWorkgroupSizeINTEL |
Literal Number |
Literal Number |
Literal Number |
KernelAttributesINTEL |
5894 |
MaxWorkDimINTEL |
Literal Number |
KernelAttributesINTEL |
||
5895 |
NoGlobalOffsetINTEL |
KernelAttributesINTEL |
|||
5896 |
NumSIMDWorkitemsINTEL |
Literal Number |
FPGAKernelAttributesINTEL |
||
5903 |
SchedulerTargetFmaxMhzINTEL |
Literal Number |
FPGAKernelAttributesINTEL |
||
6154 |
StreamingInterfaceINTEL |
Literal |
FPGAKernelAttributesINTEL |
||
6160 |
RegisterMapInterfaceINTEL |
Literal |
FPGAKernelAttributesv2INTEL |
Capability
Modify Section 3.31, Capability, adding the following rows to the Capability table:
Capability | Implicitly Declares | |
---|---|---|
5892 |
KernelAttributesINTEL |
|
5897 |
FPGAKernelAttributesINTEL |
|
6161 |
FPGAKernelAttributesv2INTEL |
FPGAKernelAttributesINTEL |
Validation Rules
It is illegal to specify both StreamingInterfaceINTEL and RegisterMapInterfaceINTEL modes on the same entry point.
Issues
None.
Revision History
Rev | Date | Author | Changes |
---|---|---|---|
1 |
2019-12-18 |
Joe Garvey |
Initial public release |
2 |
2020-04-22 |
Jessica Davies |
Added one new execution mode, SchedulerTargetFmaxMhzINTEL. |
3 |
2021-09-14 |
Ajaykumar Kannan |
Added one new execution mode, StreamingInterfaceINTEL. |
4 |
2022-12-05 |
Abhishek Tiwari |
Added one new execution mode, RegisterMapInterfaceINTEL, under a new compatibility. |