mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
KernelInfo Refactor
Using kernelDescriptor.kernelMetadata.kernelName instead of kernelInfo.name Change-Id: I11f5721d8072a3beccb573cec4bea56cf14cf0f9
This commit is contained in:
committed by
sys_ocldev
parent
7e45c396a2
commit
9f08a60a20
@@ -584,7 +584,7 @@ ze_result_t KernelImp::getProperties(ze_kernel_properties_t *pKernelProperties)
|
||||
NEO::KernelInfo *ki = nullptr;
|
||||
for (uint32_t i = 0; i < moduleImp->getTranslationUnit()->programInfo.kernelInfos.size(); i++) {
|
||||
ki = moduleImp->getTranslationUnit()->programInfo.kernelInfos[i];
|
||||
if (ki->name.compare(0, ki->name.size(), this->kernelImmData->getDescriptor().kernelMetadata.kernelName) == 0) {
|
||||
if (ki->kernelDescriptor.kernelMetadata.kernelName.compare(0, ki->kernelDescriptor.kernelMetadata.kernelName.size(), this->kernelImmData->getDescriptor().kernelMetadata.kernelName) == 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ void ModuleTranslationUnit::processDebugData() {
|
||||
kernelName = reinterpret_cast<const char *>(ptrOffset(kernelDebugHeader, sizeof(iOpenCL::SKernelDebugDataHeaderIGC)));
|
||||
|
||||
auto kernelInfo = programInfo.kernelInfos[i];
|
||||
UNRECOVERABLE_IF(kernelInfo->name.compare(0, kernelInfo->name.size(), kernelName) != 0);
|
||||
UNRECOVERABLE_IF(kernelInfo->kernelDescriptor.kernelMetadata.kernelName.compare(0, kernelInfo->kernelDescriptor.kernelMetadata.kernelName.size(), kernelName) != 0);
|
||||
|
||||
kernelDebugData = ptrOffset(kernelName, kernelDebugHeader->KernelNameSize);
|
||||
|
||||
@@ -473,7 +473,7 @@ bool ModuleImp::linkBinary() {
|
||||
if (moduleBuildLog) {
|
||||
std::vector<std::string> kernelNames;
|
||||
for (const auto &kernelInfo : this->translationUnit->programInfo.kernelInfos) {
|
||||
kernelNames.push_back("kernel : " + kernelInfo->name);
|
||||
kernelNames.push_back("kernel : " + kernelInfo->kernelDescriptor.kernelMetadata.kernelName);
|
||||
}
|
||||
auto error = constructLinkerErrorMessage(unresolvedExternalsInfo, kernelNames);
|
||||
moduleBuildLog->appendString(error.c_str(), error.size());
|
||||
|
||||
Reference in New Issue
Block a user