mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
b604ce4da5
commit
b510923e25
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user