SWDEV-277566 - Fix LinuxPro build

Change-Id: I3e15ae55591d669a87ce0d69fecf9fa32b85b0a6


[ROCm/clr commit: 8aa89274c8]
This commit is contained in:
Jason Tang authored and Jason Tang committed 2021-05-17 15:18:40 -04:00
1 vanhempi 0d91eae1aa
commit af79937953
3 files changed
+6 -6

No files matched your search

@@ -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;
}