mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 00:10:58 +08:00
Zebin: enhance clBuildProgramTests ULTs
- Do not use precompiled binaries in clBuildProgramTests. This change is required in order to enable zebin switch by default. Related-To: NEO-7281 Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
33e1b3a717
commit
dba54846a1
@@ -301,4 +301,75 @@ inline std::vector<uint8_t> createIntelGTNoteSection(PRODUCT_FAMILY productFamil
|
||||
return intelGTNotesSection;
|
||||
}
|
||||
|
||||
template <NEO::Elf::ELF_IDENTIFIER_CLASS numBits>
|
||||
struct ZebinCopyBufferSimdModule {
|
||||
ZebinCopyBufferSimdModule(const NEO::HardwareInfo &hwInfo, uint8_t simdSize);
|
||||
inline size_t getLocalIdSize(const NEO::HardwareInfo &hwInfo, uint8_t simdSize) {
|
||||
return alignUp(simdSize * sizeof(uint16_t), hwInfo.capabilityTable.grfSize) * 3;
|
||||
}
|
||||
NEO::Elf::ElfFileHeader<numBits> *elfHeader;
|
||||
std::vector<uint8_t> storage;
|
||||
std::string zeInfoCopyBuffer;
|
||||
size_t zeInfoSize;
|
||||
std::string zeInfoCopyBufferSimdPlaceholder = std::string("version :\'") + versionToString(NEO::zeInfoDecoderVersion) + R"===('
|
||||
kernels:
|
||||
- name: CopyBuffer
|
||||
execution_env:
|
||||
disable_mid_thread_preemption: true
|
||||
grf_count: 128
|
||||
has_no_stateless_write: true
|
||||
inline_data_payload_size: 32
|
||||
offset_to_skip_per_thread_data_load: 192
|
||||
required_sub_group_size: %d
|
||||
simd_size: %d
|
||||
subgroup_independent_forward_progress: true
|
||||
payload_arguments:
|
||||
- arg_type: global_id_offset
|
||||
offset: 0
|
||||
size: 12
|
||||
- arg_type: local_size
|
||||
offset: 12
|
||||
size: 12
|
||||
- arg_type: arg_bypointer
|
||||
offset: 0
|
||||
size: 0
|
||||
arg_index: 0
|
||||
addrmode: stateful
|
||||
addrspace: global
|
||||
access_type: readwrite
|
||||
- arg_type: buffer_address
|
||||
offset: 32
|
||||
size: 8
|
||||
arg_index: 0
|
||||
- arg_type: arg_bypointer
|
||||
offset: 0
|
||||
size: 0
|
||||
arg_index: 1
|
||||
addrmode: stateful
|
||||
addrspace: global
|
||||
access_type: readwrite
|
||||
- arg_type: buffer_address
|
||||
offset: 40
|
||||
size: 8
|
||||
arg_index: 1
|
||||
- arg_type: buffer_offset
|
||||
offset: 48
|
||||
size: 4
|
||||
arg_index: 0
|
||||
- arg_type: buffer_offset
|
||||
offset: 52
|
||||
size: 4
|
||||
arg_index: 1
|
||||
per_thread_payload_arguments:
|
||||
- arg_type: local_id
|
||||
offset: 0
|
||||
size: %d
|
||||
binding_table_indices:
|
||||
- bti_value: 0
|
||||
arg_index: 0
|
||||
- bti_value: 1
|
||||
arg_index: 1
|
||||
)===";
|
||||
};
|
||||
|
||||
} // namespace ZebinTestData
|
||||
Reference in New Issue
Block a user