mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
32bit zebin support
This commit adds support for 32 bit zebinary in NEO runtime and in ocloc validate. Resolves: NEO-7288 Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b5b9c3500f
commit
596e9f815c
@@ -56,8 +56,15 @@ int validate(const std::vector<std::string> &args, OclocArgHelper *argHelper) {
|
||||
return -2;
|
||||
}
|
||||
|
||||
auto elf = NEO::Elf::decodeElf<NEO::Elf::EI_CLASS_64>(deviceBinary, errors, warnings);
|
||||
auto decodeResult = NEO::decodeZebin(programInfo, elf, errors, warnings);
|
||||
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);
|
||||
} else {
|
||||
auto elf = NEO::Elf::decodeElf<NEO::Elf::EI_CLASS_64>(deviceBinary, errors, warnings);
|
||||
decodeResult = NEO::decodeZebin(programInfo, elf, errors, warnings);
|
||||
}
|
||||
|
||||
if (false == warnings.empty()) {
|
||||
argHelper->printf("Validator detected potential problems :\n%s\n", warnings.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user