mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Remove validation for kernel descriptor version
This belongs in the validation layer. Change-Id: I4595d5761489aa658ed5a474993bcf3a62b82600 Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
@ -502,10 +502,6 @@ ze_result_t KernelImp::getProperties(ze_kernel_properties_t *pKernelProperties)
|
||||
}
|
||||
|
||||
ze_result_t KernelImp::initialize(const ze_kernel_desc_t *desc) {
|
||||
if (desc->version != ZE_KERNEL_DESC_VERSION_CURRENT) {
|
||||
return ZE_RESULT_ERROR_UNSUPPORTED_VERSION;
|
||||
}
|
||||
|
||||
this->kernelImmData = module->getKernelImmutableData(desc->pKernelName);
|
||||
if (this->kernelImmData == nullptr) {
|
||||
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
|
||||
|
Reference in New Issue
Block a user