SWDEV-277566 - Fix HIP/PAL build

Change-Id: Ib460ac70423ebc3aceab22829cd2606d0db20f59
This commit is contained in:
Jason Tang
2021-05-15 12:21:00 -04:00
committed by Jason Tang
parent 32cac1471b
commit e1b226588f
2 changed files with 5 additions and 2 deletions
+2
View File
@@ -245,6 +245,7 @@ inline static std::vector<std::string> splitSpaceSeparatedString(char* str) {
bool HSAILProgram::createKernels(void* binary, size_t binSize, bool useUniformWorkGroupSize,
bool internalKernel) {
#if defined(WITH_COMPILER_LIB)
size_t kernelNamesSize = 0;
acl_error errorCode = amd::Hsail::QueryInfo(palNullDevice().compiler(), binaryElf_,
RT_KERNEL_NAMES, nullptr, nullptr, &kernelNamesSize);
@@ -277,6 +278,7 @@ bool HSAILProgram::createKernels(void* binary, size_t binSize, bool useUniformWo
aKernel->setUniformWorkGroupSize(useUniformWorkGroupSize);
}
}
#endif // defined(WITH_COMPILER_LIB)
return true;
}