Skip to content

Commit 7e71fc9

Browse files
ichenkaiigcbot
authored andcommitted
ZEBinary: Add generateLocalID flag into zeinfo
Add generateLocalID flag into zeinfo.
1 parent 822a082 commit 7e71fc9

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

IGC/ZEBinWriter/zebin/source/autogen/ZEInfo.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct zeInfoExecutionEnv
4747
{
4848
bool operator==(const zeInfoExecutionEnv& other) const
4949
{
50-
return barrier_count == other.barrier_count && disable_mid_thread_preemption == other.disable_mid_thread_preemption && grf_count == other.grf_count && has_4gb_buffers == other.has_4gb_buffers && has_device_enqueue == other.has_device_enqueue && has_dpas == other.has_dpas && has_fence_for_image_access == other.has_fence_for_image_access && has_global_atomics == other.has_global_atomics && has_multi_scratch_spaces == other.has_multi_scratch_spaces && has_no_stateless_write == other.has_no_stateless_write && has_stack_calls == other.has_stack_calls && require_disable_eufusion == other.require_disable_eufusion && indirect_stateless_count == other.indirect_stateless_count && inline_data_payload_size == other.inline_data_payload_size && offset_to_skip_per_thread_data_load == other.offset_to_skip_per_thread_data_load && offset_to_skip_set_ffid_gp == other.offset_to_skip_set_ffid_gp && required_sub_group_size == other.required_sub_group_size && required_work_group_size == other.required_work_group_size && simd_size == other.simd_size && slm_size == other.slm_size && private_size == other.private_size && spill_size == other.spill_size && subgroup_independent_forward_progress == other.subgroup_independent_forward_progress && thread_scheduling_mode == other.thread_scheduling_mode && work_group_walk_order_dimensions == other.work_group_walk_order_dimensions && eu_thread_count == other.eu_thread_count && has_sample == other.has_sample && has_rtcalls == other.has_rtcalls;
50+
return barrier_count == other.barrier_count && disable_mid_thread_preemption == other.disable_mid_thread_preemption && grf_count == other.grf_count && has_4gb_buffers == other.has_4gb_buffers && has_device_enqueue == other.has_device_enqueue && has_dpas == other.has_dpas && has_fence_for_image_access == other.has_fence_for_image_access && has_global_atomics == other.has_global_atomics && has_multi_scratch_spaces == other.has_multi_scratch_spaces && has_no_stateless_write == other.has_no_stateless_write && has_stack_calls == other.has_stack_calls && require_disable_eufusion == other.require_disable_eufusion && indirect_stateless_count == other.indirect_stateless_count && inline_data_payload_size == other.inline_data_payload_size && offset_to_skip_per_thread_data_load == other.offset_to_skip_per_thread_data_load && offset_to_skip_set_ffid_gp == other.offset_to_skip_set_ffid_gp && required_sub_group_size == other.required_sub_group_size && required_work_group_size == other.required_work_group_size && simd_size == other.simd_size && slm_size == other.slm_size && private_size == other.private_size && spill_size == other.spill_size && subgroup_independent_forward_progress == other.subgroup_independent_forward_progress && thread_scheduling_mode == other.thread_scheduling_mode && work_group_walk_order_dimensions == other.work_group_walk_order_dimensions && eu_thread_count == other.eu_thread_count && has_sample == other.has_sample && has_rtcalls == other.has_rtcalls && generate_local_id == other.generate_local_id;
5151
}
5252
zeinfo_int32_t barrier_count = 0;
5353
zeinfo_bool_t disable_mid_thread_preemption = false;
@@ -77,6 +77,7 @@ struct zeInfoExecutionEnv
7777
zeinfo_int32_t eu_thread_count = 0;
7878
zeinfo_bool_t has_sample = false;
7979
zeinfo_bool_t has_rtcalls = false;
80+
zeinfo_bool_t generate_local_id = false;
8081
};
8182
struct zeInfoPayloadArgument
8283
{
@@ -290,7 +291,7 @@ struct zeInfoContainer
290291
KernelsCostInfoTy kernels_cost_info;
291292
};
292293
struct PreDefinedAttrGetter{
293-
static zeinfo_str_t getVersionNumber() { return "1.49"; }
294+
static zeinfo_str_t getVersionNumber() { return "1.50"; }
294295

295296
enum class ArgThreadSchedulingMode {
296297
age_based,

IGC/ZEBinWriter/zebin/source/autogen/ZEInfoYAML.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ void MappingTraits<zeInfoExecutionEnv>::mapping(IO& io, zeInfoExecutionEnv& info
8686
io.mapOptional("eu_thread_count", info.eu_thread_count, 0);
8787
io.mapOptional("has_sample", info.has_sample, false);
8888
io.mapOptional("has_rtcalls", info.has_rtcalls, false);
89+
io.mapOptional("generate_local_id", info.generate_local_id, false);
8990
}
9091
void MappingTraits<zeInfoPayloadArgument>::mapping(IO& io, zeInfoPayloadArgument& info)
9192
{

IGC/ZEBinWriter/zebin/spec/version.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SPDX-License-Identifier: MIT
77
============================= end_copyright_notice ==========================-->
88

99
# ZEBIN Version
10-
Version 1.49
10+
Version 1.50
1111
=======
1212

1313
## Versioning
@@ -16,6 +16,7 @@ Format: \<_Major number_\>.\<_Minor number_\>
1616
- Minor number: Increase when backward-compatible features are added. For example, add new attributes.
1717

1818
## Change Note
19+
- **Version 1.50**: Add generateLocalID flag.
1920
- **Version 1.49**: Internal changes.
2021
- **Version 1.48**: Add relocation type "R_SYM_ADDR_16" and update supported relocation types.
2122
- **Version 1.47**: Added kernel cost analysis.

IGC/ZEBinWriter/zebin/spec/zeinfo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ If an attribute is **Required**, it must be present in exection_env. If it's **O
144144
| eu_thread_count | int32 | Optional | 0 | Number of threads per EU. If not specified, the information can be derived from grf_count. |
145145
| has_sample | bool | Optional | false | |
146146
| has_rtcalls | bool | Optional | false | |
147+
| generate_local_id | bool | Optional | false | Flag of HW local ID capable info in cross-thread-payload. |
147148
<!--- ExecutionEnv -->
148149

149150
### Supported thread scheduling mode:

0 commit comments

Comments
 (0)