SWDEV-277566 - Fix HIP/PAL build

Change-Id: Ib460ac70423ebc3aceab22829cd2606d0db20f59


[ROCm/clr commit: e1b226588f]
Este cometimento está contido em:
Jason Tang criou e Jason Tang cometeu 2021-05-15 12:24:18 -04:00
1 ascendente b4e2b455f3
cometimento 6f2e1cec35
2 ficheiros modificados
+5 -2

Não existem ficheiros que correspondam à sua pesquisa

+3 -2
Ver ficheiro
@@ -86,6 +86,7 @@ bool HSAILKernel::setKernelCode(amd::hsa::loader::Symbol* sym, amd_kernel_code_t
}
bool HSAILKernel::aqlCreateHWInfo() {
#if defined(WITH_COMPILER_LIB)
hsa_agent_t agent = {amd::Device::toHandle(&(device()))};
std::string openclKernelName = device::Kernel::openclMangledName(name());
amd::hsa::loader::Symbol* sym = prog().getSymbol(openclKernelName.c_str(), &agent);
@@ -114,7 +115,7 @@ bool HSAILKernel::aqlCreateHWInfo() {
workgroupGroupSegmentByteSize_ = workGroupInfo_.usedLDSSize_;
kernargSegmentByteSize_ = akc->kernarg_segment_byte_size;
#endif // defined(WITH_COMPILER_LIB)
return true;
}
@@ -134,7 +135,7 @@ bool HSAILKernel::postLoad() {
if (!aqlCreateHWInfo()) {
return false;
}
#endif
#endif // defined(WITH_COMPILER_LIB)
return true;
}