Fix error code for non-found kernel on zeKernelCreate()

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2021-04-08 17:52:40 -07:00
committed by Compute-Runtime-Automation
parent b604ce4da5
commit b510923e25
2 changed files with 2 additions and 2 deletions

View File

@@ -650,7 +650,7 @@ ze_result_t KernelImp::getProperties(ze_kernel_properties_t *pKernelProperties)
ze_result_t KernelImp::initialize(const ze_kernel_desc_t *desc) {
this->kernelImmData = module->getKernelImmutableData(desc->pKernelName);
if (this->kernelImmData == nullptr) {
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
return ZE_RESULT_ERROR_INVALID_KERNEL_NAME;
}
auto isaAllocation = this->kernelImmData->getIsaGraphicsAllocation();