SWDEV-277566 - Fix HIP/PAL build

Change-Id: Ib460ac70423ebc3aceab22829cd2606d0db20f59


[ROCm/clr commit: e1b226588f]
Tá an tiomantas seo le fáil i:
Jason Tang údaraithe agus Jason Tang tiomanta 2021-05-15 12:24:18 -04:00
1 tuismitheoir b4e2b455f3
tiomantas 6f2e1cec35
2 comhad athraithe
+5 -2

Níor tháinig aon chomhaid le do chuardach

+3 -2
Féach ar an gComhad
@@ -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;
}