mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 11:03:02 +08:00
Fix for setting correct program compiler version
Change-Id: I41db8c1640d51fabedbc2d39ff76be04c124c332
This commit is contained in:
committed by
sys_ocldev
parent
7b68579e34
commit
459a157e17
@@ -33,7 +33,6 @@ cl_int Program::processElfBinary(
|
||||
size_t binarySize,
|
||||
uint32_t &binaryVersion) {
|
||||
const CLElfLib::SElf64Header *pElfHeader = nullptr;
|
||||
char *pSectionData = nullptr;
|
||||
|
||||
binaryVersion = iOpenCL::CURRENT_ICBE_VERSION;
|
||||
|
||||
@@ -79,7 +78,7 @@ cl_int Program::processElfBinary(
|
||||
storeGenBinary(elfReader.getSectionData(sectionHeader.DataOffset), static_cast<size_t>(sectionHeader.DataSize));
|
||||
isCreatedFromBinary = true;
|
||||
} else {
|
||||
getProgramCompilerVersion((SProgramBinaryHeader *)pSectionData, binaryVersion);
|
||||
getProgramCompilerVersion(reinterpret_cast<SProgramBinaryHeader *>(elfReader.getSectionData(sectionHeader.DataOffset)), binaryVersion);
|
||||
return CL_INVALID_BINARY;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user