mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Propagate errors in ModuleImp::createKernel
Change-Id: I71612013e27315841103ceaf1de9ea11c1876ac6 Signed-off-by: Jim Snow <jim.m.snow@intel.com>
This commit is contained in:
@@ -383,9 +383,14 @@ void ModuleImp::updateBuildLog(NEO::Device *neoDevice) {
|
||||
|
||||
ze_result_t ModuleImp::createKernel(const ze_kernel_desc_t *desc,
|
||||
ze_kernel_handle_t *phFunction) {
|
||||
ze_result_t res = ZE_RESULT_SUCCESS;
|
||||
*phFunction = Kernel::create(productFamily, this, desc, &res)->toHandle();
|
||||
return ZE_RESULT_SUCCESS;
|
||||
ze_result_t res;
|
||||
auto kernel = Kernel::create(productFamily, this, desc, &res);
|
||||
|
||||
if (res == ZE_RESULT_SUCCESS) {
|
||||
*phFunction = kernel->toHandle();
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
ze_result_t ModuleImp::getNativeBinary(size_t *pSize, uint8_t *pModuleNativeBinary) {
|
||||
|
||||
Reference in New Issue
Block a user