SWDEV-559267 - Use CLPrint to DevLogPrintf with Log Level - detail debug. (#1160)
Este cometimento está contido em:
cometido por
GitHub
ascendente
93682f2f75
cometimento
740a06d567
@@ -221,7 +221,8 @@ static amd_comgr_language_t getCOMGRLanguage(bool isHIP, const amd::option::Opti
|
||||
}
|
||||
}
|
||||
|
||||
DevLogPrintfError("Cannot set Language version for %s \n", amdOptions.oVariables->CLStd);
|
||||
ClPrint(amd::LOG_DETAIL_DEBUG, amd::LOG_COMGR,
|
||||
"Cannot set Language version for %s \n", amdOptions.oVariables->CLStd);
|
||||
return AMD_COMGR_LANGUAGE_NONE;
|
||||
}
|
||||
|
||||
@@ -969,7 +970,7 @@ bool Program::initBuild(amd::option::Options* options) {
|
||||
}
|
||||
buildLog_.clear();
|
||||
if (!initClBinary()) {
|
||||
DevLogError("Init CL Binary failed \n");
|
||||
ClPrint(amd::LOG_DETAIL_DEBUG, amd::LOG_KERN, "Init CL Binary failed \n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1521,7 +1522,7 @@ bool Program::getCompileOptionsAtLinking(const std::vector<Program*>& inputProgr
|
||||
bool Program::initClBinary(const char* binaryIn, size_t size, amd::Os::FileDesc fdesc,
|
||||
size_t foffset, std::string uri) {
|
||||
if (!initClBinary()) {
|
||||
DevLogError("Init CL Binary failed \n");
|
||||
ClPrint(amd::LOG_DETAIL_DEBUG, amd::LOG_KERN, "Init CL Binary failed \n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1537,7 +1538,7 @@ bool Program::initClBinary(const char* binaryIn, size_t size, amd::Os::FileDesc
|
||||
|
||||
size_t decryptedSize;
|
||||
if (!clBinary()->decryptElf(binaryIn, size, &decryptedBin, &decryptedSize, &encryptCode)) {
|
||||
DevLogError("Cannot Decrypt Elf \n");
|
||||
ClPrint(amd::LOG_DETAIL_DEBUG, amd::LOG_KERN, "Bin is not ELF \n");
|
||||
return false;
|
||||
}
|
||||
if (decryptedBin != nullptr) {
|
||||
@@ -1549,7 +1550,7 @@ bool Program::initClBinary(const char* binaryIn, size_t size, amd::Os::FileDesc
|
||||
if (!isElf(bin)) {
|
||||
// Invalid binary.
|
||||
delete[] decryptedBin;
|
||||
DevLogError("Bin is not ELF \n");
|
||||
ClPrint(amd::LOG_DETAIL_DEBUG, amd::LOG_KERN, "Bin is not ELF \n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1572,7 +1573,7 @@ void Program::addKernel(Kernel* k) {
|
||||
bool Program::setBinary(const char* binaryIn, size_t size, const device::Program* same_dev_prog,
|
||||
amd::Os::FileDesc fdesc, size_t foffset, std::string uri) {
|
||||
if (!initClBinary(binaryIn, size, fdesc, foffset, uri)) {
|
||||
DevLogError("Init CL Binary failed \n");
|
||||
ClPrint(amd::LOG_DETAIL_DEBUG, amd::LOG_KERN, "Init CL Binary failed \n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2091,7 +2092,7 @@ const bool Program::getLoweredNames(std::vector<std::string>* mangledNames) cons
|
||||
|
||||
/* Itrate thru global vars */
|
||||
if (!getSymbolsFromCodeObj(mangledNames, AMD_COMGR_SYMBOL_TYPE_OBJECT)) {
|
||||
DevLogError("Cannot get Symbols from Code Obj \n");
|
||||
ClPrint(amd::LOG_DETAIL_DEBUG, amd::LOG_COMGR, "Cannot get Symbols from Code Obj \n");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador