mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:41:26 +08:00
refactor(zebin): move files to seperate directory
* Moved zebin related files to zebin directory. * Moved zebin related code to Zebin namespace. * Separated zeInfo from zebin elf. * Seperated zeInfo decoding from zebin decoder. * Refactored populateKernelPayloadArgument function. Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
210b4cfeea
commit
58d3f892a9
@@ -10,7 +10,7 @@
|
||||
#include "shared/offline_compiler/source/ocloc_arg_helper.h"
|
||||
#include "shared/source/compiler_interface/external_functions.h"
|
||||
#include "shared/source/compiler_interface/linker.h"
|
||||
#include "shared/source/device_binary_format/zebin_decoder.h"
|
||||
#include "shared/source/device_binary_format/zebin/zebin_decoder.h"
|
||||
#include "shared/source/program/kernel_info.h"
|
||||
#include "shared/source/program/program_info.h"
|
||||
|
||||
@@ -63,10 +63,10 @@ int validate(const std::vector<std::string> &args, OclocArgHelper *argHelper) {
|
||||
NEO::DecodeError decodeResult;
|
||||
if (NEO::Elf::isElf<NEO::Elf::EI_CLASS_32>(deviceBinary)) {
|
||||
auto elf = NEO::Elf::decodeElf<NEO::Elf::EI_CLASS_32>(deviceBinary, errors, warnings);
|
||||
decodeResult = NEO::decodeZebin(programInfo, elf, errors, warnings);
|
||||
decodeResult = NEO::Zebin::decodeZebin(programInfo, elf, errors, warnings);
|
||||
} else {
|
||||
auto elf = NEO::Elf::decodeElf<NEO::Elf::EI_CLASS_64>(deviceBinary, errors, warnings);
|
||||
decodeResult = NEO::decodeZebin(programInfo, elf, errors, warnings);
|
||||
decodeResult = NEO::Zebin::decodeZebin(programInfo, elf, errors, warnings);
|
||||
}
|
||||
|
||||
if (false == warnings.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user