Skip to content

Commit c8f3096

Browse files
committed
Fix return code
1 parent aa04221 commit c8f3096

File tree

1 file changed

+1
-2
lines changed
  • unified-runtime/source/adapters/level_zero/v2

1 file changed

+1
-2
lines changed

unified-runtime/source/adapters/level_zero/v2/kernel.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,7 @@ ur_result_t urKernelSetArgPointer(
431431
std::scoped_lock<ur_shared_mutex> guard(hKernel->Mutex);
432432
// Store the raw pointer value and defer setting the
433433
// argument until we know the device where kernel is being submitted.
434-
hKernel->addPendingPointerArgument(argIndex, pArgValue);
435-
return UR_RESULT_SUCCESS;
434+
return hKernel->addPendingPointerArgument(argIndex, pArgValue);
436435
} catch (...) {
437436
return exceptionToResult(std::current_exception());
438437
}

0 commit comments

Comments
 (0)