SWDEV-277566 - Fix LinuxPro build
Change-Id: I3e15ae55591d669a87ce0d69fecf9fa32b85b0a6
[ROCm/clr commit: 8aa89274c8]
This commit is contained in:
committed by
Jason Tang
orang tua
0d91eae1aa
melakukan
af79937953
@@ -1784,7 +1784,7 @@ bool Program::loadHSAIL() {
|
||||
void* bin = const_cast<void*>(amd::Hsail::ExtractSection(device().compiler(), binaryElf_,
|
||||
&binSize, aclTEXT, &errorCode));
|
||||
if (errorCode != ACL_SUCCESS) {
|
||||
LogPrintfError("Error: cannot extract ISA from compiled binary.\n");
|
||||
LogError("Error: cannot extract ISA from compiled binary.");
|
||||
return false;
|
||||
}
|
||||
// Call the device layer to setup all available kernels on the actual device
|
||||
|
||||
@@ -99,13 +99,13 @@ bool HSAILKernel::aqlCreateHWInfo() {
|
||||
amd_kernel_code_t* akc = &akc_;
|
||||
|
||||
if (!setKernelCode(sym, akc)) {
|
||||
LogPrintfError("Error: setKernelCode() failed.\n");
|
||||
LogError("Error: setKernelCode() failed.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!sym->GetInfo(HSA_EXT_EXECUTABLE_SYMBOL_INFO_KERNEL_OBJECT_SIZE,
|
||||
reinterpret_cast<void*>(&codeSize_))) {
|
||||
LogPrintfError("Error: sym->GetInfo() failed.\n");
|
||||
LogError("Error: sym->GetInfo() failed.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -775,7 +775,7 @@ bool LightningProgram::setKernels(void* binary, size_t binSize,
|
||||
|
||||
executable_ = loader_->CreateExecutable(HSA_PROFILE_FULL, nullptr);
|
||||
if (executable_ == nullptr) {
|
||||
LogPrintfError("Error: Executable for AMD HSA Code Object isn't created.\n");
|
||||
LogError("Error: Executable for AMD HSA Code Object isn't created.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -786,13 +786,13 @@ bool LightningProgram::setKernels(void* binary, size_t binSize,
|
||||
|
||||
hsa_status_t status = executable_->LoadCodeObject(agent, code_object, nullptr);
|
||||
if (status != HSA_STATUS_SUCCESS) {
|
||||
LogPrintfError("Error: AMD HSA Code Object loading failed.\n");
|
||||
LogError("Error: AMD HSA Code Object loading failed.");
|
||||
return false;
|
||||
}
|
||||
|
||||
status = executable_->Freeze(nullptr);
|
||||
if (status != HSA_STATUS_SUCCESS) {
|
||||
LogPrintfError("Error: Freezing the executable failed.\n");
|
||||
LogError("Error: Freezing the executable failed.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user